You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/ipn
David Anderson 358cd3fd92 ipn: fix incorrect change tracking for packet filter.
ORder of operations to trigger a problem:
 - Start an already authed tailscaled, verify you can ping stuff.
 - Run `tailscale up`. Notice you can no longer ping stuff.

The problem is that `tailscale up` stops the IPN state machine before
restarting it, which zeros out the packet filter but _not_ the packet
filter hash. Then, upon restarting IPN, the uncleared hash incorrectly
makes the code conclude that the filter doesn't need updating, and so
we stay with a zero filter (reject everything) for ever.

The fix is simply to update the filterHash correctly in all cases,
so that running -> stopped -> running correctly changes the filter
at every transition.

Signed-off-by: David Anderson <danderson@tailscale.com>
5 years ago
..
ipnserver ipn/ipnserver: fix bug in earlier commit where conn can be stranded 5 years ago
ipnstate ipn/ipnstate: record assigned Tailscale IPs. 5 years ago
policy ipn, ipn/policy: filter portlist to a short list of "interesting" ports 6 years ago
backend.go ipn: add Login backend command for sign-in with token 5 years ago
doc.go Move Linux client & common packages into a public repo. 6 years ago
fake_test.go ipn: add Login backend command for sign-in with token 5 years ago
handle.go ipn: add Login backend command for sign-in with token 5 years ago
local.go ipn: fix incorrect change tracking for packet filter. 5 years ago
message.go ipn: add Login backend command for sign-in with token 5 years ago
message_test.go ipn: add Login backend command for sign-in with token 5 years ago
prefs.go ipn: add OSVersion, DeviceModel fields to Prefs and propagate to Hostinfos 5 years ago
prefs_test.go ipn: add OSVersion, DeviceModel fields to Prefs and propagate to Hostinfos 5 years ago
store.go ipn: have NewFileStore try to create directories as needed 6 years ago
store_test.go Add tstest.PanicOnLog(), and fix various problems detected by this. 6 years ago