Joe Tsai
6248c1ceca
all: use "github.com/go-json-experiment/json/v1" over "encoding/json"
...
DO NOT SUBMIT: experiment to check how much breaks.
Signed-off-by: Joe Tsai <joetsai@digital-static.net>
2025-07-14 14:45:45 -07:00
Fran Bull
3b25e94352
cmd/natc: allow specifying the tsnet state dir
...
Which can make operating the service more convenient.
It makes sense to put the cluster state with this if specified, so
rearrange the logic to handle that.
Updates #14667
Signed-off-by: Fran Bull <fran@tailscale.com>
2025-06-11 10:05:18 -07:00
Fran Bull
3e08eab21e
cmd/natc: use new on disk state store for consensus
...
Fixes #16027
Signed-off-by: Fran Bull <fran@tailscale.com>
2025-06-05 13:37:48 -07:00
Fran Bull
486a55f0a9
cmd/natc: add optional consensus backend
...
Enable nat connector to be run on a cluster of machines for high
availability.
Updates #14667
Signed-off-by: Fran Bull <fran@tailscale.com>
2025-06-04 08:15:47 -07:00
Fran Bull
4cb9d5c183
cmd/natc: cleanup unused state
...
perPeerState no longer needs to know the v6ULA.
Updates #14667
Signed-off-by: Fran Bull <fran@tailscale.com>
2025-04-14 14:06:56 -07:00
Fran Bull
1e290867bd
cmd/natc: only store v4 addresses
...
Because we derive v6 addresses from v4 addresses we only need to store
the v4 address, not both.
Updates #14667
Signed-off-by: Fran Bull <fran@tailscale.com>
2025-04-11 14:30:49 -07:00
Fran Bull
603a1d3830
cmd/natc: move address storage behind an interface
...
Adds IPPool and moves all IP address management concerns behind that.
Updates #14667
Signed-off-by: Fran Bull <fran@tailscale.com>
2025-04-06 14:09:37 -07:00