Add ssh proxy

This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-06-19 11:55:04 -03:00
committed by Marcos Lilljedahl
parent 9de63d5c17
commit 755e3c7707
6 changed files with 233 additions and 2 deletions

2
api.go
View File

@@ -111,6 +111,8 @@ func main() {
log.Fatal(httpServer.ListenAndServe())
}()
go handlers.ListenSSHProxy("0.0.0.0:1022")
// Now listen for TLS connections that need to be proxied
handlers.StartTLSProxy(config.SSLPortNumber)
}