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
Brad Fitzpatrick bb94561c96 net/netutil: fix regression where peerapi would get closed after 1st req
I introduced a bug in 8fe503057d when unifying oneConnListener
implementations.

The NewOneConnListenerFrom API was easy to misuse (its Close method
closes the underlying Listener), and we did (via http.Serve, which
closes the listener after use, which meant we were close the peerapi's
listener, even though we only wanted its Addr)

Instead, combine those two constructors into one and pass in the Addr
explicitly, without delegating through to any Listener.

Change-Id: I061d7e5f842e0cada416e7b2dd62100d4f987125
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2 years ago
..
ipnlocal net/netutil: fix regression where peerapi would get closed after 1st req 2 years ago
ipnserver net/netutil: fix regression where peerapi would get closed after 1st req 2 years ago
ipnstate ipn/ipnlocal: use views for Peer.PrimaryRoutes and Peer.Tags 2 years ago
localapi ipn/localapi: treat ACME "invalid" state as terminal, log more 2 years ago
policy ipn/policy: treat DNS service as interesting so it's not filtered out 3 years ago
store/aws ipn/store/aws: support using sub-paths in parameters 3 years ago
backend.go ipn: use key.NodePublic instead of tailcfg.NodeKey 3 years ago
doc.go Move Linux client & common packages into a public repo. 4 years ago
fake_test.go ipn{,/ipnlocal}, cmd/tailscale/cli: don't check pref reverts on initial up 3 years ago
handle.go ipn: another controlplane synonym 3 years ago
message.go ipn: don't log IPN messages that may contain an authkey. 3 years ago
message_test.go ipn: allow b to be nil in NewBackendServer 3 years ago
prefs.go wgengine/netstack: add an SSH server experiment 2 years ago
prefs_clone.go wgengine/netstack: add an SSH server experiment 2 years ago
prefs_test.go wgengine/netstack: add an SSH server experiment 2 years ago
store.go ipn: remove mention of wgkey in comment. 3 years ago
store_test.go ipn: test TestFileStore in a fresh subdirectory 3 years ago