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
localapi ipn/localapi: treat ACME "invalid" state as terminal, log more 2022-02-19 16:22:58 -08:00
policy
store/aws
backend.go
doc.go
fake_test.go
handle.go
message.go
message_test.go
prefs.go wgengine/netstack: add an SSH server experiment 2022-01-24 19:14:13 -08:00
prefs_clone.go
prefs_test.go wgengine/netstack: add an SSH server experiment 2022-01-24 19:14:13 -08:00
store.go
store_test.go