diff --git a/portlist/portlist_ios.go b/portlist/portlist_ios.go new file mode 100644 index 000000000..a7a85a54c --- /dev/null +++ b/portlist/portlist_ios.go @@ -0,0 +1,22 @@ +// Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build darwin,!amd64 + +package portlist + +import ( + "errors" + "time" +) + +const pollInterval = 9999 * time.Hour + +func listPorts() (List, error) { + return nil, errors.New("not implemented") +} + +func addProcesses(pl []Port) ([]Port, error) { + return nil, errors.New("not implemented") +} diff --git a/portlist/portlist_darwin.go b/portlist/portlist_macos.go similarity index 98% rename from portlist/portlist_darwin.go rename to portlist/portlist_macos.go index 08bb514cc..12022cd32 100644 --- a/portlist/portlist_darwin.go +++ b/portlist/portlist_macos.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build !linux,!windows +// +build darwin,amd64 package portlist