mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-21 06:01:42 +00:00
types/preftype: don't use iota for consts persisted to disk
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
9b57cd53ba
commit
2074dfa5e0
@ -10,10 +10,12 @@ package preftype
|
|||||||
// programming the Linux network stack.
|
// programming the Linux network stack.
|
||||||
type NetfilterMode int
|
type NetfilterMode int
|
||||||
|
|
||||||
|
// These numbers are persisted to disk in JSON files and thus can't be
|
||||||
|
// renumbered or repurposed.
|
||||||
const (
|
const (
|
||||||
NetfilterOff NetfilterMode = iota // remove all tailscale netfilter state
|
NetfilterOff NetfilterMode = 0 // remove all tailscale netfilter state
|
||||||
NetfilterNoDivert // manage tailscale chains, but don't call them
|
NetfilterNoDivert NetfilterMode = 1 // manage tailscale chains, but don't call them
|
||||||
NetfilterOn // manage tailscale chains and call them from main chains
|
NetfilterOn NetfilterMode = 2 // manage tailscale chains and call them from main chains
|
||||||
)
|
)
|
||||||
|
|
||||||
func (m NetfilterMode) String() string {
|
func (m NetfilterMode) String() string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user