tailscale/portlist
Marwan Sulaiman aa528bb7bf portlist: Accept Options for NewPoller
This is a follow up on PR #8172 and a breaking change that allows NewPoller to take an options struct.
The issue with the previous PR was that NewPoller immediately initializes the underlying os implementation
and therefore setting IncludeLocalhost as an exported field happened too late and cannot happen early enough.
Using the zero value of Poller was also not an option from outside of the package because we need to set initial
private fields

Fixes #8171

Signed-off-by: Marwan Sulaiman <marwan@tailscale.com>
2023-05-24 16:35:00 -04:00
..
clean.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
clean_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
netstat.go portlist: add Poller.IncludeLocalhost option 2023-05-24 13:26:16 -04:00
netstat_test.go portlist: add Poller.IncludeLocalhost option 2023-05-24 13:26:16 -04:00
poller.go portlist: Accept Options for NewPoller 2023-05-24 16:35:00 -04:00
portlist.go portlist: add Poller.IncludeLocalhost option 2023-05-24 13:26:16 -04:00
portlist_linux.go portlist: add Poller.IncludeLocalhost option 2023-05-24 13:26:16 -04:00
portlist_linux_test.go portlist: add Poller.IncludeLocalhost option 2023-05-24 13:26:16 -04:00
portlist_macos.go portlist: add Poller.IncludeLocalhost option 2023-05-24 13:26:16 -04:00
portlist_test.go portlist: Accept Options for NewPoller 2023-05-24 16:35:00 -04:00
portlist_windows.go portlist: add Poller.IncludeLocalhost option 2023-05-24 13:26:16 -04:00