@ -58,6 +58,7 @@ type tmplData struct {
AdvertiseExitNode bool
AdvertiseExitNode bool
AdvertiseRoutes string
AdvertiseRoutes string
LicensesURL string
LicensesURL string
TUNMode bool
}
}
var webCmd = & ffcli . Command {
var webCmd = & ffcli . Command {
@ -338,7 +339,7 @@ func webHandler(w http.ResponseWriter, r *http.Request) {
return
return
}
}
st , err := localClient . Status ( ctx )
st , err := localClient . Status WithoutPeers ( ctx )
if err != nil {
if err != nil {
http . Error ( w , err . Error ( ) , http . StatusInternalServerError )
http . Error ( w , err . Error ( ) , http . StatusInternalServerError )
return
return
@ -408,6 +409,7 @@ func webHandler(w http.ResponseWriter, r *http.Request) {
Status : st . BackendState ,
Status : st . BackendState ,
DeviceName : deviceName ,
DeviceName : deviceName ,
LicensesURL : licensesURL ( ) ,
LicensesURL : licensesURL ( ) ,
TUNMode : st . TUN ,
}
}
exitNodeRouteV4 := netip . MustParsePrefix ( "0.0.0.0/0" )
exitNodeRouteV4 := netip . MustParsePrefix ( "0.0.0.0/0" )
exitNodeRouteV6 := netip . MustParsePrefix ( "::/0" )
exitNodeRouteV6 := netip . MustParsePrefix ( "::/0" )