From 2998e1d039e2c5166a958f26f172f57c818b2b38 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Fri, 15 Dec 2017 10:57:17 -0800 Subject: [PATCH] cmd/route-httpagent: update help output to match manpage better --- cmd/route-httpagent/main.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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() {