cmd/httpagent: toggle KCP/TCP

This commit is contained in:
Cadey Ratio 2017-03-26 13:57:09 -07:00
parent f09a33e0df
commit cc890642b6
1 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,8 @@ var (
token = flag.String("token", "", "Service identifier token")
domain = flag.String("domain", "", "Domain to ID as")
backend = flag.String("backend", "http://127.0.0.1:9090", "backend TCP/HTTP server")
serverAddr = flag.String("server", "127.0.0.1:9234", "frontend KCP server")
serverAddr = flag.String("server", "127.0.0.1:9234", "frontend server")
connMethod = flag.String("method", "tcp", "tcp or kcp connections?")
)
func main() {
@ -21,7 +22,7 @@ func main() {
cfg := &tun2.ClientConfig{
TLSConfig: &tls.Config{},
ConnType: "tcp",
ConnType: *connMethod,
ServerAddr: *serverAddr,
Token: *token,
Domain: *domain,