Fixed possibility of duplicate server.Alias
This commit is contained in:
parent
cb4e376093
commit
27ace6ba40
1 changed files with 3 additions and 3 deletions
|
@ -130,9 +130,9 @@ func (n *NGINXController) syncIngress(interface{}) error {
|
|||
for _, server := range servers {
|
||||
if !hosts.Has(server.Hostname) {
|
||||
hosts.Insert(server.Hostname)
|
||||
if server.Alias != "" {
|
||||
hosts.Insert(server.Alias)
|
||||
}
|
||||
if server.Alias != "" && !hosts.Has(server.Hostname) {
|
||||
hosts.Insert(server.Alias)
|
||||
}
|
||||
|
||||
if !server.SSLPassthrough {
|
||||
|
|
Loading…
Reference in a new issue