mirror of
https://github.com/nginx-proxy/nginx-proxy
synced 2024-05-09 00:56:07 +02:00
fix #2310
Check the '.Internal' network property, because the .Gateway property is defined for internal networks as well.
This commit is contained in:
parent
57a350364d
commit
a2ade38abb
|
@ -75,7 +75,7 @@
|
|||
{{- continue }}
|
||||
{{- end }}
|
||||
{{- range sortObjectsByKeysAsc $.globals.CurrentContainer.Networks "Name" }}
|
||||
{{- if and . .Gateway }}
|
||||
{{- if and . .Gateway (not .Internal) }}
|
||||
# container is in host network mode, using {{ .Name }} gateway IP
|
||||
{{- $ip = .Gateway }}
|
||||
{{- break }}
|
||||
|
|
Loading…
Reference in New Issue