Skip to content

Commit ea9997f

Browse files
authored
Merge pull request qwj#72 from mosajjal/master
added keepalive interval of 60
2 parents 818ab9c + d45e25e commit ea9997f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pproxy/__doc__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__title__ = "pproxy"
2-
__version__ = "2.3.2"
2+
__version__ = "2.3.3"
33
__license__ = "MIT"
44
__description__ = "Proxy server that can tunnel among remote servers by regex rules."
55
__keywords__ = "proxy socks http shadowsocks shadowsocksr ssr redirect pf tunnel cipher ssl udp"

pproxy/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ async def open_connection(self, host, port, local_addr, lbind, timeout=SOCKET_TI
356356
password = None
357357
else:
358358
client_keys = None
359-
conn = await asyncssh.connect(host=self.host_name, port=self.port, local_addr=local_addr, family=family, x509_trusted_certs=None, known_hosts=None, username=username, password=password, client_keys=client_keys)
359+
conn = await asyncssh.connect(host=self.host_name, port=self.port, local_addr=local_addr, family=family, x509_trusted_certs=None, known_hosts=None, username=username, password=password, client_keys=client_keys, keepalive_interval=60)
360360
if not self.streams.done():
361361
self.streams.set_result((conn, None))
362362
return conn, None

0 commit comments

Comments
 (0)