diff --git a/cmd/httpagent/main.go b/cmd/httpagent/main.go index 01adc58..8abcee7 100644 --- a/cmd/httpagent/main.go +++ b/cmd/httpagent/main.go @@ -8,8 +8,9 @@ import ( ) var ( - token = flag.String("token", "", "Service identifier token") - backend = flag.String("backend", "127.0.0.1:9090", "backend TCP/HTTP server") + token = flag.String("token", "", "Service identifier token") + backend = flag.String("backend", "127.0.0.1:9090", "backend TCP/HTTP server") + serverAddr = flag.String("server", "127.0.0.1:9234", "frontend HTTP server") ) func main() { @@ -18,7 +19,7 @@ func main() { cfg := &tunnel.ClientConfig{ Identifier: *token, LocalAddr: *backend, - ServerAddr: "127.0.0.1:9234", + ServerAddr: *serverAddr, } client, err := tunnel.NewClient(cfg)