mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-28 10:51:45 +08:00
Refactor: stats -> restapi
This commit is contained in:
3
main.go
3
main.go
@@ -32,8 +32,7 @@ func init() {
|
||||
flag.StringVar(&key.Interface, "interface", "", "Use network INTERFACE (Linux/MacOS only)")
|
||||
flag.StringVar(&key.LogLevel, "loglevel", "info", "Log level [debug|info|warning|error|silent]")
|
||||
flag.StringVar(&key.Proxy, "proxy", "", "Use this proxy [protocol://]host[:port]")
|
||||
flag.StringVar(&key.Stats, "stats", "", "HTTP statistic server listen address")
|
||||
flag.StringVar(&key.Token, "token", "", "HTTP statistic server auth token")
|
||||
flag.StringVar(&key.RestAPI, "restapi", "", "HTTP statistic server listen address")
|
||||
flag.Parse()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user