diff options
| author | Denton Gentry <dgentry@tailscale.com> | 2023-03-18 12:27:21 -0700 |
|---|---|---|
| committer | Denton Gentry <dgentry@tailscale.com> | 2023-03-19 06:07:45 -0700 |
| commit | c41c4f9fb551e03f1067cc02fdcac9f0d5a810b3 (patch) | |
| tree | 0808043d61b7e33be2da6221170cbffc4d4af9e9 /net/interfaces/interfaces.go | |
| parent | 82e067e0ffaa64434d1e08d318b682b1403f5c32 (diff) | |
| download | tailscale-azure.tar.xz tailscale-azure.zip | |
debugging azureazure
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
Diffstat (limited to 'net/interfaces/interfaces.go')
| -rw-r--r-- | net/interfaces/interfaces.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/interfaces/interfaces.go b/net/interfaces/interfaces.go index f8f815bd8..f27347cfb 100644 --- a/net/interfaces/interfaces.go +++ b/net/interfaces/interfaces.go @@ -155,7 +155,7 @@ func LocalAddresses() (regular, loopback []netip.Addr, 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() == hostinfo.AWSLambda || hostinfo.GetEnvType() == hostinfo.AzureAppService { regular4 = linklocal4 } regular6 = ula6 @@ -645,7 +645,7 @@ func isUsableV4(ip netip.Addr) bool { return false } if ip.IsLinkLocalUnicast() { - return hostinfo.GetEnvType() == hostinfo.AWSLambda + return (hostinfo.GetEnvType() == hostinfo.AWSLambda || hostinfo.GetEnvType() == hostinfo.AzureAppService) } return true } |
