|
|
|
|
@ -26,6 +26,7 @@ import ( |
|
|
|
|
"strings" |
|
|
|
|
|
|
|
|
|
"github.com/peterbourgon/ff/v3/ffcli" |
|
|
|
|
"tailscale.com/envknob" |
|
|
|
|
"tailscale.com/ipn" |
|
|
|
|
"tailscale.com/ipn/ipnstate" |
|
|
|
|
"tailscale.com/tailcfg" |
|
|
|
|
@ -59,6 +60,7 @@ type tmplData struct { |
|
|
|
|
AdvertiseRoutes string |
|
|
|
|
LicensesURL string |
|
|
|
|
TUNMode bool |
|
|
|
|
IsSynology bool |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var webCmd = &ffcli.Command{ |
|
|
|
|
@ -410,6 +412,7 @@ func webHandler(w http.ResponseWriter, r *http.Request) { |
|
|
|
|
DeviceName: deviceName, |
|
|
|
|
LicensesURL: licensesURL(), |
|
|
|
|
TUNMode: st.TUN, |
|
|
|
|
IsSynology: distro.Get() == distro.Synology || envknob.Bool("TS_FAKE_SYNOLOGY"), |
|
|
|
|
} |
|
|
|
|
exitNodeRouteV4 := netip.MustParsePrefix("0.0.0.0/0") |
|
|
|
|
exitNodeRouteV6 := netip.MustParsePrefix("::/0") |
|
|
|
|
|