blob: 4c8196dd79b7f989281c36649cda5c7d95ea6936 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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)
|