aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Latta <zach@zachlatta.com>2016-03-06 08:34:19 -0500
committerZach Latta <zach@zachlatta.com>2016-03-06 08:34:19 -0500
commita0785fa10836234779818e75719938efe34cfa32 (patch)
tree9ef58df7be7710c6683306c0f1673ced380079b9
parentf794f90c83abe80776b752a0a5ad98b986a33c27 (diff)
downloadsshtron-a0785fa10836234779818e75719938efe34cfa32.tar.gz
Fix ports
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 7e7d652..27c4abe 100644
--- a/main.go
+++ b/main.go
@@ -66,8 +66,8 @@ func handler(conn net.Conn, gm *GameManager, config *ssh.ServerConfig) {
}
func port(env, def string) string {
- var port string
- if os.Getenv(env) == "" {
+ port := os.Getenv(env)
+ if port == "" {
port = def
}
Un proyecto texto-plano.xyz