cmd/route-httpagent: update help output to match manpage better
This commit is contained in:
parent
e827fa0ab5
commit
2998e1d039
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue