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>
2022-02-22 13:52:18 -08:00
..
ipnlocal net/netutil: fix regression where peerapi would get closed after 1st req 2022-02-22 13:52:18 -08:00
ipnserver net/netutil: fix regression where peerapi would get closed after 1st req 2022-02-22 13:52:18 -08:00
ipnstate ipn/ipnlocal: use views for Peer.PrimaryRoutes and Peer.Tags 2022-02-22 10:09:02 -08:00
localapi ipn/localapi: treat ACME "invalid" state as terminal, log more 2022-02-19 16:22:58 -08:00
policy ipn/policy: treat DNS service as interesting so it's not filtered out 2021-12-03 12:55:54 -08:00
store/aws ipn/store/aws: support using sub-paths in parameters 2021-11-29 07:48:01 -08:00
backend.go ipn: use key.NodePublic instead of tailcfg.NodeKey 2021-11-01 20:32:10 -07:00
doc.go Move Linux client & common packages into a public repo. 2020-02-09 09:32:57 -08:00
fake_test.go ipn{,/ipnlocal}, cmd/tailscale/cli: don't check pref reverts on initial up 2021-04-18 08:12:18 -07:00
handle.go ipn: another controlplane synonym 2021-07-13 08:22:10 -07:00
message_test.go ipn: allow b to be nil in NewBackendServer 2021-05-19 09:33:19 -07:00
message.go ipn: don't log IPN messages that may contain an authkey. 2021-09-22 20:32:49 -07:00
prefs_clone.go wgengine/netstack: add an SSH server experiment 2022-01-24 19:14:13 -08:00
prefs_test.go wgengine/netstack: add an SSH server experiment 2022-01-24 19:14:13 -08:00
prefs.go wgengine/netstack: add an SSH server experiment 2022-01-24 19:14:13 -08:00
store_test.go ipn: test TestFileStore in a fresh subdirectory 2021-09-24 15:05:10 -07:00
store.go ipn: remove mention of wgkey in comment. 2021-10-28 10:40:44 -07:00