cmd/route-httpagent: update help output to match manpage better

This commit is contained in:
Cadey Ratio 2017-12-15 10:57:17 -08:00
parent e827fa0ab5
commit 2998e1d039
1 changed files with 6 additions and 5 deletions

View File

@ -9,14 +9,15 @@ import (
"git.xeserv.us/xena/route/internal/tun2" "git.xeserv.us/xena/route/internal/tun2"
"github.com/Xe/ln" "github.com/Xe/ln"
"github.com/facebookgo/flagenv" "github.com/facebookgo/flagenv"
_ "github.com/joho/godotenv"
) )
var ( var (
token = flag.String("token", "", "Service identifier token") token = flag.String("token", "", "authentication token used to authenticate with routed")
domain = flag.String("domain", "", "Domain to ID as") 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") 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", "frontend server") serverAddr = flag.String("server", "127.0.0.1:9234", "the address that routed is listening on for backend connections")
connMethod = flag.String("method", "tcp", "tcp or kcp connections?") connMethod = flag.String("method", "tcp", "the connection method used to talk to routed (MUST be either 'tcp' or 'kcp')")
) )
func main() { func main() {