diff --git a/cmd/route-httpagent/main.go b/cmd/route-httpagent/main.go index f6acac3..8230783 100644 --- a/cmd/route-httpagent/main.go +++ b/cmd/route-httpagent/main.go @@ -9,14 +9,15 @@ import ( "git.xeserv.us/xena/route/internal/tun2" "github.com/Xe/ln" "github.com/facebookgo/flagenv" + _ "github.com/joho/godotenv" ) 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 server") - connMethod = flag.String("method", "tcp", "tcp or kcp connections?") + token = flag.String("token", "", "authentication token used to authenticate with routed") + domain = flag.String("domain", "", "domain to use when authenticating with routed") + backend = flag.String("backend", "http://127.0.0.1:9090", "backend TCP/HTTP server route-httpagent should relay traffic to/from") + serverAddr = flag.String("server", "127.0.0.1:9234", "the address that routed is listening on for backend connections") + connMethod = flag.String("method", "tcp", "the connection method used to talk to routed (MUST be either 'tcp' or 'kcp')") ) func main() {