Teach L4Backend.Equal about more attributes

We were missing the ServerName and UseProxyProtocol attributes which was causing updates to not trigger in my environment.
This commit is contained in:
Bob Van Zant 2017-09-27 10:09:55 -07:00 committed by GitHub
parent 6e24dc68f7
commit a7c636c582

View file

@ -476,6 +476,11 @@ func (l4b1 *L4Backend) Equal(l4b2 *L4Backend) bool {
if l4b1.Protocol != l4b2.Protocol {
return false
}
if l4b1.ServerName != l4b2.ServerName {
return false
}
if l4b1.UseProxyProtocol != l4b2.UseProxyProtocol {
return false
}
return true
}