mirror of
https://github.com/tailscale/tailscale.git
synced 2025-06-28 19:18:40 +00:00
add login server as a flag
Signed-off-by: Kevin Liang <kevinliang@tailscale.com>
This commit is contained in:
parent
e38c30e0b6
commit
0f72f281fc
@ -58,6 +58,7 @@ func main() {
|
|||||||
ignoreDstPfxStr = fs.String("ignore-destinations", "", "comma-separated list of prefixes to ignore")
|
ignoreDstPfxStr = fs.String("ignore-destinations", "", "comma-separated list of prefixes to ignore")
|
||||||
wgPort = fs.Uint("wg-port", 0, "udp port for wireguard and peer to peer traffic")
|
wgPort = fs.Uint("wg-port", 0, "udp port for wireguard and peer to peer traffic")
|
||||||
clusterTag = fs.String("cluster-tag", "", "optionally run in a consensus cluster with other nodes with this tag")
|
clusterTag = fs.String("cluster-tag", "", "optionally run in a consensus cluster with other nodes with this tag")
|
||||||
|
server = fs.String("login-server", ipn.DefaultControlURL, "the base URL of control server")
|
||||||
)
|
)
|
||||||
ff.Parse(fs, os.Args[1:], ff.WithEnvVarPrefix("TS_NATC"))
|
ff.Parse(fs, os.Args[1:], ff.WithEnvVarPrefix("TS_NATC"))
|
||||||
|
|
||||||
@ -95,7 +96,7 @@ func main() {
|
|||||||
ts := &tsnet.Server{
|
ts := &tsnet.Server{
|
||||||
Hostname: *hostname,
|
Hostname: *hostname,
|
||||||
}
|
}
|
||||||
ts.ControlURL = "http://host.docker.internal:31544" // TODO fran
|
ts.ControlURL = *server
|
||||||
if *wgPort != 0 {
|
if *wgPort != 0 {
|
||||||
if *wgPort >= 1<<16 {
|
if *wgPort >= 1<<16 {
|
||||||
log.Fatalf("wg-port must be in the range [0, 65535]")
|
log.Fatalf("wg-port must be in the range [0, 65535]")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user