Need to compare servername and proxy protocol

This commit is contained in:
Bob Van Zant 2017-09-27 10:05:33 -07:00
parent 693157a8d7
commit 967b5fbb0f

View file

@ -505,6 +505,12 @@ 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
}