diff --git a/internal/ingress/controller/controller.go b/internal/ingress/controller/controller.go index 2522430b2..f180e905e 100644 --- a/internal/ingress/controller/controller.go +++ b/internal/ingress/controller/controller.go @@ -130,7 +130,7 @@ func (n *NGINXController) syncIngress(interface{}) error { if !hosts.Has(server.Hostname) { hosts.Insert(server.Hostname) } - if server.Alias != "" && !hosts.Has(server.Hostname) { + if server.Alias != "" && !hosts.Has(server.Alias) { hosts.Insert(server.Alias) }