X Tutup
Skip to content

Commit ffec391

Browse files
authored
v1.8.5
1 parent d8f0ffc commit ffec391

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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__ = "1.8.4"
2+
__version__ = "1.8.5"
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/proto.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ def sendto(data):
418418
writer.write(b'\x30'+sid+len(data).to_bytes(2,'big')+data)
419419
self.udpmap[sid] = (host_name, port, sendto)
420420
return self.udpmap[sid]
421+
writer.get_extra_info('socket').setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
421422
return Handler()
422423

423424
async def parse(protos, reader, **kw):

0 commit comments

Comments
 (0)
X Tutup