tailscale/net/netns
Aaron Klotz 655b4f8fc5 net/netns: remove some logspam by avoiding logging parse errors due to unspecified addresses
I updated the address parsing stuff to return a specific error for
unspecified hosts passed as empty strings, and look for that
when logging errors. I explicitly did not make parseAddress return a
netip.Addr containing an unspecified address because at this layer,
in the absence of any host, we don't necessarily know the address
family we're dealing with.

For the purposes of this code I think this is fine, at least until
we implement #12588.

Fixes #12979

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
2024-07-31 12:34:16 -06:00
..
mksyscall.go net/netns: add Windows support for bind-to-interface-by-route 2024-06-24 10:43:34 -06:00
netns.go net/netns: add Windows support for bind-to-interface-by-route 2024-06-24 10:43:34 -06:00
netns_android.go all: avoid repeated default interface lookups 2023-04-20 15:46:01 -07:00
netns_darwin.go net/netns: remove some logspam by avoiding logging parse errors due to unspecified addresses 2024-07-31 12:34:16 -06:00
netns_darwin_test.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2024-04-28 07:34:52 -07:00
netns_default.go all: avoid repeated default interface lookups 2023-04-20 15:46:01 -07:00
netns_dw.go net/netns: remove some logspam by avoiding logging parse errors due to unspecified addresses 2024-07-31 12:34:16 -06:00
netns_linux.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2024-04-28 07:34:52 -07:00
netns_linux_test.go util/linuxfw: decoupling IPTables logic from linux router 2023-06-27 19:54:27 -04:00
netns_test.go all: avoid repeated default interface lookups 2023-04-20 15:46:01 -07:00
netns_windows.go net/netns: remove some logspam by avoiding logging parse errors due to unspecified addresses 2024-07-31 12:34:16 -06:00
netns_windows_test.go net/netns: add Windows support for bind-to-interface-by-route 2024-06-24 10:43:34 -06:00
socks.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
zsyscall_windows.go net/netns: add Windows support for bind-to-interface-by-route 2024-06-24 10:43:34 -06:00