mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-06 08:26:50 +01:00
58dbf1b88d
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
22 lines
1.1 KiB
Diff
22 lines
1.1 KiB
Diff
diff --git a/plugins/wb.admin/backend/wb_admin_ssh.py b/plugins/wb.admin/backend/wb_admin_ssh.py
|
|
--- a/plugins/wb.admin/backend/wb_admin_ssh.py
|
|
+++ b/plugins/wb.admin/backend/wb_admin_ssh.py
|
|
@@ -88,6 +88,9 @@ if paramiko and server_version_str2tuple
|
|
if (server_version_str2tuple(paramiko.__version__) <= (1, 14, 99)):
|
|
m.add_int(self.window_size)
|
|
m.add_int(self.max_packet_size)
|
|
+ else:
|
|
+ m.add_int(self.default_window_size)
|
|
+ m.add_int(self.default_max_packet_size)
|
|
if (kind == 'forwarded-tcpip') or (kind == 'direct-tcpip'):
|
|
m.add_string(dest_addr[0])
|
|
m.add_int(dest_addr[1])
|
|
@@ -103,6 +106,8 @@ if paramiko and server_version_str2tuple
|
|
chan._set_transport(self)
|
|
if (server_version_str2tuple(paramiko.__version__) <= (1, 14, 99)):
|
|
chan._set_window(self.window_size, self.max_packet_size)
|
|
+ else:
|
|
+ chan._set_window(self.default_window_size, self.default_max_packet_size)
|
|
finally:
|
|
self.lock.release()
|
|
self._send_user_message(m)
|