Bugfix of the last commit.
This commit is contained in:
parent
2781209eb0
commit
8394656aef
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@
|
|||
// a list of associations
|
||||
"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,
|
||||
"local": 22
|
||||
|
|
|
@ -38,7 +38,7 @@ if __name__ == "__main__":
|
|||
print("! unable to load any configuration")
|
||||
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"]:
|
||||
command.append("-R")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue