[nginx] pass non-SNI TLS hello to default backend, Fixes #693

This commit is contained in:
Donald Guy 2017-05-08 17:44:43 -04:00
parent 07f0f8ff3b
commit 775485be1d
2 changed files with 8 additions and 6 deletions

View file

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

View file

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