add
This commit is contained in:
parent
2b1abdf783
commit
2d3ed37feb
28
README.md
28
README.md
@ -117,6 +117,26 @@ QT GUI: https://github.com/esrrhs/pingtunnel-qt
|
||||
|
||||
-type 服务器或者客户端
|
||||
|
||||
server端参数:
|
||||
|
||||
-key 设置的密码,默认0
|
||||
|
||||
-nolog 不写日志文件,只打印标准输出,默认0
|
||||
|
||||
-noprint 不打印屏幕输出,默认0
|
||||
|
||||
-loglevel 日志文件等级,默认info
|
||||
|
||||
-maxconn 最大连接数,默认0,不受限制
|
||||
|
||||
-maxprt server最大处理线程数,默认100
|
||||
|
||||
-maxprb server最大处理线程buffer数,默认1000
|
||||
|
||||
-conntt server发起连接到目标地址的超时时间,默认1000ms
|
||||
|
||||
客户端参数:
|
||||
|
||||
-l 本地的地址,发到这个端口的流量将转发到服务器
|
||||
|
||||
-s 服务器的地址,流量将通过隧道转发到这个服务器
|
||||
@ -147,16 +167,8 @@ QT GUI: https://github.com/esrrhs/pingtunnel-qt
|
||||
|
||||
-sock5 开启sock5转发,默认0
|
||||
|
||||
-maxconn 最大连接数,默认1000
|
||||
|
||||
-maxprt server最大处理线程数,默认100
|
||||
|
||||
-maxprb server最大处理线程buffer数,默认1000
|
||||
|
||||
-profile 在指定端口开启性能检测,默认0不开启
|
||||
|
||||
-conntt server发起连接到目标地址的超时时间,默认1000ms
|
||||
|
||||
-s5filter sock5模式设置转发过滤,默认全转发,设置CN代表CN地区的直连不转发
|
||||
|
||||
-s5ftfile sock5模式转发过滤的数据文件,默认读取当前目录的GeoLite2-Country.mmdb
|
||||
|
28
README_EN.md
28
README_EN.md
@ -109,6 +109,26 @@ QT GUI: https://github.com/esrrhs/pingtunnel-qt
|
||||
|
||||
-type client or server
|
||||
|
||||
server param:
|
||||
|
||||
-key Set password, default 0
|
||||
|
||||
-nolog Do not write log files, only print standard output, default 0 is off
|
||||
|
||||
-noprint Do not print standard output, default 0 is off
|
||||
|
||||
-loglevel log level, default is info
|
||||
|
||||
-maxconn the max num of connections, default 0 is no limit
|
||||
|
||||
-maxprt max process thread in server, default 100
|
||||
|
||||
-maxprb max process thread's buffer in server, default 1000
|
||||
|
||||
-conntt The timeout period for the server to initiate a connection to the destination address. The default is 1000ms.
|
||||
|
||||
client param:
|
||||
|
||||
-l Local address, traffic sent to this port will be forwarded to the server
|
||||
|
||||
-s The address of the server, the traffic will be forwarded to this server through the tunnel
|
||||
@ -139,16 +159,8 @@ QT GUI: https://github.com/esrrhs/pingtunnel-qt
|
||||
|
||||
-sock5 Turn on sock5 forwarding, default 0 is off
|
||||
|
||||
-maxconn the max num of connections, default 1000
|
||||
|
||||
-maxprt max process thread in server, default 100
|
||||
|
||||
-maxprb max process thread's buffer in server, default 1000
|
||||
|
||||
-profile Enable performance detection on the specified port. The default 0 is not enabled.
|
||||
|
||||
-conntt The timeout period for the server to initiate a connection to the destination address. The default is 1000ms.
|
||||
|
||||
-s5filter Set the forwarding filter in the sock5 mode. The default is full forwarding. For example, setting the CN indicates that the Chinese address is not forwarded.
|
||||
|
||||
-s5ftfile The data file in sock5 filter mode, the default reading of the current directory GeoLite2-Country.mmdb
|
||||
|
40
main.go
40
main.go
@ -35,6 +35,34 @@ Usage:
|
||||
-type 服务器或者客户端
|
||||
client or server
|
||||
|
||||
server端参数server param:
|
||||
|
||||
-key 设置的密码,默认0
|
||||
Set password, default 0
|
||||
|
||||
-nolog 不写日志文件,只打印标准输出,默认0
|
||||
Do not write log files, only print standard output, default 0 is off
|
||||
|
||||
-noprint 不打印屏幕输出,默认0
|
||||
Do not print standard output, default 0 is off
|
||||
|
||||
-loglevel 日志文件等级,默认info
|
||||
log level, default is info
|
||||
|
||||
-maxconn 最大连接数,默认0,不受限制
|
||||
the max num of connections, default 0 is no limit
|
||||
|
||||
-maxprt server最大处理线程数,默认100
|
||||
max process thread in server, default 100
|
||||
|
||||
-maxprb server最大处理线程buffer数,默认1000
|
||||
max process thread's buffer in server, default 1000
|
||||
|
||||
-conntt server发起连接到目标地址的超时时间,默认1000ms
|
||||
The timeout period for the server to initiate a connection to the destination address. The default is 1000ms.
|
||||
|
||||
客户端参数client param:
|
||||
|
||||
-l 本地的地址,发到这个端口的流量将转发到服务器
|
||||
Local address, traffic sent to this port will be forwarded to the server
|
||||
|
||||
@ -80,21 +108,9 @@ Usage:
|
||||
-sock5 开启sock5转发,默认0
|
||||
Turn on sock5 forwarding, default 0 is off
|
||||
|
||||
-maxconn 最大连接数,默认0,不受限制
|
||||
the max num of connections, default 0 is no limit
|
||||
|
||||
-maxprt server最大处理线程数,默认100
|
||||
max process thread in server, default 100
|
||||
|
||||
-maxprb server最大处理线程buffer数,默认1000
|
||||
max process thread's buffer in server, default 1000
|
||||
|
||||
-profile 在指定端口开启性能检测,默认0不开启
|
||||
Enable performance detection on the specified port. The default 0 is not enabled.
|
||||
|
||||
-conntt server发起连接到目标地址的超时时间,默认1000ms
|
||||
The timeout period for the server to initiate a connection to the destination address. The default is 1000ms.
|
||||
|
||||
-s5filter sock5模式设置转发过滤,默认全转发,设置CN代表CN地区的直连不转发
|
||||
Set the forwarding filter in the sock5 mode. The default is full forwarding. For example, setting the CN indicates that the Chinese address is not forwarded.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user