Skip to content

Commit

Permalink
#2473 port should always be a number
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@24363 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 4, 2019
1 parent 72ab460 commit 428430b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xpra/net/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ def ssh_paramiko_connect_to(display_desc):
host = host_config.get("hostname", host)
username = host_config.get("username", username)
port = host_config.get("port", port)
try:
port = int(port)
except ValueError:
raise InitException("invalid port specified: '%s'" % port)
proxycommand = host_config.get("proxycommand")
keyfiles = host_config.get("identityfile")
if proxycommand:
Expand Down

0 comments on commit 428430b

Please sign in to comment.