From 589ec018c7880b741777032a3c3da555114ef12b Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Sat, 5 Oct 2024 20:41:39 +0100 Subject: chat: Get auto-scroll working, and fix ssh conn --- src/relay/network.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/relay') diff --git a/src/relay/network.py b/src/relay/network.py index 1071f1a..4308ecf 100644 --- a/src/relay/network.py +++ b/src/relay/network.py @@ -256,7 +256,7 @@ class Network(GObject.GObject): def connect_weechat_ssh(self, ssh_host, ssh_port, ssh_username, ssh_key, relay_host, relay_port, relay_pw): self.ssh_tunnel = SSHTunnelForwarder( - ssh_host, + (ssh_host, int(ssh_port)), ssh_username=ssh_username, ssh_pkey=ssh_key, remote_bind_address=(relay_host, int(relay_port))) @@ -294,7 +294,7 @@ class Network(GObject.GObject): self._socket = self._socketclient.connect_finish(res) except GLib.Error as err: print("Connection failed:\n{}".format(err.message)) - self.set_status(STATUS_NOT_CONNECTED) + self.set_status(STATUS_DISCONNECTED) return else: print("Connected") @@ -401,3 +401,4 @@ class Network(GObject.GObject): self.debug_dialog.display_lines(self.debug_lines) self.debug_dialog.chat.scroll_bottom() + -- cgit