Prechádzať zdrojové kódy

Merge pull request #2347 from pini-gh/pini-2310

fix #2310
Nicolas Duchon 1 rok pred
rodič
commit
478940420e
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      nginx.tmpl

+ 1 - 1
nginx.tmpl

@@ -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 }}