We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f46820 commit cfdf7fbCopy full SHA for cfdf7fb
cmd/sshfront/sshfront.go
@@ -52,9 +52,9 @@ func main() {
52
}
53
SetupHostKey(config)
54
55
- var listenAddr string
56
- if listenAddr = os.Getenv("SSHFRONT_LISTEN"); listenAddr == "" {
57
- listenAddr = fmt.Sprintf("%s:%s", *ListenHost, *ListenPort)
+ listenAddr := os.Getenv("SSHFRONT_LISTEN")
+ if listenAddr == "" {
+ listenAddr = net.JoinHostPort(*ListenHost, *ListenPort)
58
59
60
log.Printf("sshfront v%s listening on %s ...\n", Version, listenAddr)
0 commit comments