diff options
| author | David Crawshaw <crawshaw@tailscale.com> | 2022-02-07 11:07:10 -0800 |
|---|---|---|
| committer | David Crawshaw <crawshaw@tailscale.com> | 2022-02-07 11:11:24 -0800 |
| commit | 8b1b50ac2718f767cc391ab8d90de3094ed3174a (patch) | |
| tree | a48efb7f2552161b2ae142a815826932a34d7343 /net/interfaces | |
| parent | df8f02db3f4929060f6baae848aa1cb73f8b4413 (diff) | |
| download | tailscale-crawshaw/envtype.tar.xz tailscale-crawshaw/envtype.zip | |
tailcfg, hostinfo: put envtype in Hostinfocrawshaw/envtype
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
Diffstat (limited to 'net/interfaces')
| -rw-r--r-- | net/interfaces/interfaces.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/interfaces/interfaces.go b/net/interfaces/interfaces.go index b8f0de826..14ce9e67b 100644 --- a/net/interfaces/interfaces.go +++ b/net/interfaces/interfaces.go @@ -18,6 +18,7 @@ import ( "tailscale.com/hostinfo" "tailscale.com/net/tsaddr" "tailscale.com/net/tshttpproxy" + "tailscale.com/tailcfg" ) // LoginEndpointForProxyDetermination is the URL used for testing @@ -153,7 +154,7 @@ func LocalAddresses() (regular, loopback []netaddr.IP, err error) { // addresses we otherwise wouldn't, like: // + 169.254.x.x (AWS Lambda uses NAT with these) // + IPv6 ULA (Google Cloud Run uses these with address translation) - if hostinfo.GetEnvType() == hostinfo.AWSLambda { + if hostinfo.GetEnvType() == tailcfg.AWSLambda { regular4 = linklocal4 } regular6 = ula6 @@ -615,7 +616,7 @@ func isUsableV4(ip netaddr.IP) bool { return false } if ip.IsLinkLocalUnicast() { - return hostinfo.GetEnvType() == hostinfo.AWSLambda + return hostinfo.GetEnvType() == tailcfg.AWSLambda } return true } |
