Bugfix of the last commit.

This commit is contained in:
Martin Sekera 2019-10-26 00:12:37 +02:00
parent 2781209eb0
commit 8394656aef
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@
// a list of associations // a list of associations
"mapping": [ "mapping": [
// local port 22 will be available as port 39999 on the above server // port "local" will be available as port "remote" on the above server
{ {
"remote": 39999, "remote": 39999,
"local": 22 "local": 22

View file

@ -38,7 +38,7 @@ if __name__ == "__main__":
print("! unable to load any configuration") print("! unable to load any configuration")
sys.exit(1) sys.exit(1)
command = ["/usr/bin/ssh", "-o", "ServerAliveInterval 45", "-o", "ServerAliveCountMax 2", "-o", "ExitOnForwardFailure yes", "-N", "-p", safe_get(cfg, "port", 22)] command = ["/usr/bin/ssh", "-o", "ServerAliveInterval 45", "-o", "ServerAliveCountMax 2", "-o", "ExitOnForwardFailure yes", "-N", "-p", str(safe_get(cfg, "port", 22))]
for m in cfg["mapping"]: for m in cfg["mapping"]:
command.append("-R") command.append("-R")