summaryrefslogtreecommitdiffhomepage
path: root/net/interfaces/interfaces.go
diff options
context:
space:
mode:
Diffstat (limited to 'net/interfaces/interfaces.go')
-rw-r--r--net/interfaces/interfaces.go4
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
}