Преглед на файлове

fix #2310

Check the '.Internal' network property, because the .Gateway property is
defined for internal networks as well.
Gilles Filippini преди 1 година
родител
ревизия
a2ade38abb
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 }}