Prefs class abstract
Low-level escape hatch for preferences that don't have a dedicated namespace — subnet routes, Shields Up, auto-update opt-in, tags, etc.
Reached via Tailscale.prefs. For common single-field changes prefer the named setters; for atomic multi-field edits use updateMasked.
Constructors
- Prefs()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
get(
) → Future< TailscalePrefs> - Current preferences snapshot.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAcceptRoutes(
bool enabled) → Future< TailscalePrefs> - Accept subnet routes advertised by other nodes on the tailnet.
-
setAdvertisedRoutes(
List< String> cidrs) → Future<TailscalePrefs> - Replaces the set of CIDRs this node advertises as a subnet router. See tailscale.com/kb/1019/subnets. Still requires admin approval of each route in the control plane before other nodes use it.
-
setAdvertisedTags(
List< String> tags) → Future<TailscalePrefs> - Replaces the set of ACL tags this node advertises when registering.
-
setAutoUpdate(
bool enabled) → Future< TailscalePrefs> - Opt in or out of automatic tsnet version updates from the control plane.
-
setHostname(
String hostname) → Future< TailscalePrefs> - Changes the tailnet-visible hostname for this node.
-
setShieldsUp(
bool enabled) → Future< TailscalePrefs> - Reject all inbound connections when true. See tailscale.com/kb/1072/client-preferences#block-incoming-connections.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateMasked(
PrefsUpdate update) → Future< TailscalePrefs> - Applies a PrefsUpdate atomically. Fields set on the update are written; fields left null are unchanged.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited