File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11__title__ = "pproxy"
2- __version__ = "1.9.5 "
2+ __version__ = "1.9.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"
Original file line number Diff line number Diff line change @@ -38,7 +38,12 @@ async def realtime_stat(stats):
3838 del history [:1 ]
3939
4040def setup (loop , args ):
41- args .verbose = lambda s : sys .stdout .write (s + '\x1b [0K\n ' ) and sys .stdout .flush ()
41+ def verbose (s ):
42+ if args .v >= 2 :
43+ sys .stdout .write ('\x1b [32m' + time .strftime ('%Y-%m-%d %H:%M:%S' )+ '\x1b [m ' )
44+ sys .stdout .write (s + '\x1b [0K\n ' )
45+ sys .stdout .flush ()
46+ args .verbose = verbose
4247 args .stats = {0 : [0 ]* 6 }
4348 def modstat (remote_ip , host_name , stats = args .stats ):
4449 host_name_2 = '.' .join (host_name .split ('.' )[- 3 if host_name .endswith ('.com.cn' ) else - 2 :]) if host_name .split ('.' )[- 1 ].isalpha () else host_name
You can’t perform that action at this time.
0 commit comments