Merge pull request #973 from stibi/945-nginx-no-reload
check number of servers in configuration comparator
This commit is contained in:
commit
a6f7c93245
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue