--- a/src/Pure/General/ssh.scala Thu Jun 09 00:01:34 2022 +0200
+++ b/src/Pure/General/ssh.scala Thu Jun 09 00:10:18 2022 +0200
@@ -128,7 +128,7 @@
new Session(options, session, on_close,
proper_string(nominal_host) getOrElse host,
proper_string(nominal_user) getOrElse user,
- nominal_port.getOrElse(port))
+ nominal_port.getOrElse(make_port(port)))
}
def open_session(
@@ -154,8 +154,8 @@
connect_session(host = fw.local_host, port = fw.local_port,
host_key_permissive = permissive,
nominal_host = host,
- nominal_port = Some(make_port(port)),
- nominal_user = user, user = user,
+ nominal_port = Some(make_port(port)),
+ nominal_user = user, user = user,
on_close = { () => fw.close(); proxy.close() })
}
catch { case exn: Throwable => fw.close(); proxy.close(); throw exn }