diff options
| author | Brad Fitzpatrick <bradfitz@tailscale.com> | 2024-11-02 14:01:29 -0700 |
|---|---|---|
| committer | Anton Tolchanov <commits@knyar.net> | 2025-05-05 09:34:36 +0100 |
| commit | 0f881a9d09d402196626c9a94de3fc11afd5eb90 (patch) | |
| tree | 51c768e62c32db3d96d07a9dcdbfa59c5a08c768 | |
| parent | 507c359a449489dd573fdfd3cd422c00d833c248 (diff) | |
| download | tailscale-0f881a9d09d402196626c9a94de3fc11afd5eb90.tar.xz tailscale-0f881a9d09d402196626c9a94de3fc11afd5eb90.zip | |
cmd/lopower: wire up --wg-port flag
Change-Id: I406cf97c4af27c2ac4b4fe28eb8a3b30fac37e5b
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
| -rw-r--r-- | cmd/lopower/lopower.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/lopower/lopower.go b/cmd/lopower/lopower.go index e098eb3bd..6263e001c 100644 --- a/cmd/lopower/lopower.go +++ b/cmd/lopower/lopower.go @@ -39,7 +39,7 @@ import ( ) var ( - wgListenAddr = flag.String("wg-listen", ":51820", "address to listen on for WireGuard from the client") + wgListenPort = flag.Int("wg-port", 51820, "port number to listen on for WireGuard from the client") qrListenAddr = flag.String("qr-listen", "127.0.0.1:8014", "HTTP address to serve a QR code for client's WireGuard configuration") ) @@ -106,6 +106,7 @@ func (lp *lpServer) reconfig() { wc := &wgcfg.Config{ Name: "lopower0", PrivateKey: lp.c.PrivKey, + ListenPort: uint16(*wgListenPort), Addresses: []netip.Prefix{ netip.PrefixFrom(lp.c.V4, 32), netip.PrefixFrom(lp.c.V6, 128), |
