Merge pull request #973 from stibi/945-nginx-no-reload

check number of servers in configuration comparator
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-07-15 13:43:58 -04:00 committed by GitHub
commit a6f7c93245

View file

@ -64,6 +64,10 @@ func (c1 *Configuration) Equal(c2 *Configuration) bool {
}
}
if len(c1.Servers) != len(c2.Servers) {
return false
}
for _, c1s := range c1.Servers {
found := false
for _, c2s := range c2.Servers {