Need to compare servername and proxy protocol
This commit is contained in:
parent
693157a8d7
commit
967b5fbb0f
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue