Skip to content

Commit

Permalink
Merge pull request #696 from donaldguy/nginx-no-sni
Browse files Browse the repository at this point in the history
[nginx] pass non-SNI TLS hello to default backend, Fixes #693
  • Loading branch information
aledbf authored May 9, 2017
2 parents 4601775 + 2d1b6dc commit 433220d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 7 additions & 1 deletion controllers/nginx/pkg/cmd/controller/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
6 changes: 1 addition & 5 deletions controllers/nginx/pkg/cmd/controller/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 433220d

Please sign in to comment.