Now About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/src/relay/network.py
diff options
context:
space:
mode:
authorLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-10-05 20:41:39 +0100
committerLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-10-05 20:41:39 +0100
commit589ec018c7880b741777032a3c3da555114ef12b (patch)
treea84a09796d0ae5a699d5d23b05d2d37a4f37295e /src/relay/network.py
parentbe71bf80d290c98c0f6a66d3dcab28515b4ea371 (diff)
chat: Get auto-scroll working, and fix ssh conn
Diffstat (limited to 'src/relay/network.py')
-rw-r--r--src/relay/network.py5
1 files changed, 3 insertions, 2 deletions
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()
+