Merge pull request #696 from donaldguy/nginx-no-sni

[nginx] pass non-SNI TLS hello to default backend, Fixes #693
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-05-09 14:07:02 -03:00 committed by GitHub
commit 433220de3c
2 changed files with 8 additions and 6 deletions

View file

@ -83,7 +83,13 @@ func newNGINXController() ingress.Controller {
configmap: &api_v1.ConfigMap{},
isIPV6Enabled: isIPv6Enabled(),
resolver: h,
proxy: &proxy{},
proxy: &proxy{
Default: &server{
Hostname: "localhost",
IP: "127.0.0.1",
Port: 442,
},
},
}
listener, err := net.Listen("tcp", ":443")

View file

@ -27,11 +27,7 @@ func (p *proxy) Get(host string) *server {
}
}
return &server{
Hostname: "localhost",
IP: "127.0.0.1",
Port: 442,
}
return p.Default
}
func (p *proxy) Handle(conn net.Conn) {