X Tutup
Skip to content

Commit d1c8535

Browse files
authored
v2.0.0
1 parent 8bb0dda commit d1c8535

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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.9.9"
2+
__version__ = "2.0.0"
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,18 +217,18 @@ def connection_made(prot, transport):
217217
for data in prot.databuf:
218218
transport.sendto(data)
219219
prot.databuf.clear()
220-
prot.update = time.time()
220+
prot.update = time.perf_counter()
221221
def new_data_arrived(prot, data):
222222
if prot.transport:
223223
prot.transport.sendto(data)
224224
else:
225225
prot.databuf.append(data)
226-
prot.update = time.time()
226+
prot.update = time.perf_counter()
227227
def datagram_received(prot, data, addr):
228228
data = self.cipher.datagram.decrypt(data) if self.cipher else data
229229
data = self.rproto.udp_client(data) if not self.direct else data
230230
reply(data)
231-
prot.update = time.time()
231+
prot.update = time.perf_counter()
232232
def connection_lost(prot, exc):
233233
self.udpmap.pop(addr, None)
234234
if addr in self.udpmap:

0 commit comments

Comments
 (0)
X Tutup