Skip to content

Commit 09cb333

Browse files
authored
v1.8.6
1 parent ffec391 commit 09cb333

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

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.5"
2+
__version__ = "1.8.6"
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import asyncio, socket, urllib.parse, time, re, base64, hmac, struct, hashlib, fcntl, io, os
1+
import asyncio, socket, urllib.parse, time, re, base64, hmac, struct, hashlib, io, os
22

33
HTTP_LINE = re.compile('([^ ]+) +(.+?) +(HTTP/[^ ]+)$')
44
packstr = lambda s, n=1: len(s).to_bytes(n, 'big') + s
@@ -312,6 +312,7 @@ def query_remote(self, sock):
312312
class Pf(Transparent):
313313
def query_remote(self, sock):
314314
try:
315+
import fcntl
315316
src = sock.getpeername()
316317
dst = sock.getsockname()
317318
src_ip = socket.inet_pton(sock.family, src[0])

0 commit comments

Comments
 (0)