mirror of
https://github.com/net-byte/vtun
synced 2024-03-14 10:50:03 +08:00
update docs
This commit is contained in:
parent
63e630033e
commit
b18f2c9b5f
@ -15,6 +15,7 @@ A simple VPN written in golang.
|
|||||||
* VPN over websocket
|
* VPN over websocket
|
||||||
* VPN over tls
|
* VPN over tls
|
||||||
* VPN over quic
|
* VPN over quic
|
||||||
|
* VPN over grpc
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
@ -45,7 +46,7 @@ Usage of ./vtun:
|
|||||||
-obfs
|
-obfs
|
||||||
enable data obfuscation
|
enable data obfuscation
|
||||||
-p string
|
-p string
|
||||||
protocol tcp/udp/tls/quic/ws/wss (default "wss")
|
protocol tcp/udp/tls/quic/grpc/ws/wss (default "wss")
|
||||||
-path string
|
-path string
|
||||||
websocket path (default "/freedom")
|
websocket path (default "/freedom")
|
||||||
-s string
|
-s string
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
* 支持websocket
|
* 支持websocket
|
||||||
* 支持tls
|
* 支持tls
|
||||||
* 支持quic
|
* 支持quic
|
||||||
|
* 支持grpc
|
||||||
|
|
||||||
# 用法
|
# 用法
|
||||||
|
|
||||||
@ -45,7 +46,7 @@ Usage of ./vtun:
|
|||||||
-obfs
|
-obfs
|
||||||
enable data obfuscation
|
enable data obfuscation
|
||||||
-p string
|
-p string
|
||||||
protocol tcp/udp/tls/quic/ws/wss (default "wss")
|
protocol tcp/udp/tls/quic/grpc/ws/wss (default "wss")
|
||||||
-path string
|
-path string
|
||||||
websocket path (default "/freedom")
|
websocket path (default "/freedom")
|
||||||
-s string
|
-s string
|
||||||
|
2
main.go
2
main.go
@ -33,7 +33,7 @@ func main() {
|
|||||||
flag.StringVar(&config.IntranetServerIPv6, "sip6", "fced:9999::1", "intranet server ipv6")
|
flag.StringVar(&config.IntranetServerIPv6, "sip6", "fced:9999::1", "intranet server ipv6")
|
||||||
flag.StringVar(&config.DNSServerIP, "dip", "8.8.8.8", "dns server ip")
|
flag.StringVar(&config.DNSServerIP, "dip", "8.8.8.8", "dns server ip")
|
||||||
flag.StringVar(&config.Key, "k", "freedom@2022", "key")
|
flag.StringVar(&config.Key, "k", "freedom@2022", "key")
|
||||||
flag.StringVar(&config.Protocol, "p", "wss", "protocol tcp/udp/tls/quic/ws/wss")
|
flag.StringVar(&config.Protocol, "p", "wss", "protocol tcp/udp/tls/quic/grpc/ws/wss")
|
||||||
flag.StringVar(&config.WebSocketPath, "path", "/freedom", "websocket path")
|
flag.StringVar(&config.WebSocketPath, "path", "/freedom", "websocket path")
|
||||||
flag.BoolVar(&config.ServerMode, "S", false, "server mode")
|
flag.BoolVar(&config.ServerMode, "S", false, "server mode")
|
||||||
flag.BoolVar(&config.GlobalMode, "g", false, "client global mode")
|
flag.BoolVar(&config.GlobalMode, "g", false, "client global mode")
|
||||||
|
Loading…
Reference in New Issue
Block a user