diff options
author | Zach Latta <zach@zachlatta.com> | 2016-03-06 08:34:19 -0500 |
---|---|---|
committer | Zach Latta <zach@zachlatta.com> | 2016-03-06 08:34:19 -0500 |
commit | a0785fa10836234779818e75719938efe34cfa32 (patch) | |
tree | 9ef58df7be7710c6683306c0f1673ced380079b9 | |
parent | f794f90c83abe80776b752a0a5ad98b986a33c27 (diff) | |
download | sshtron-a0785fa10836234779818e75719938efe34cfa32.tar.gz |
Fix ports
-rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } |