tailscale/ipn/ipnlocal
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
..
dnsconfig_test.go ipnlocal, net/{dns,tsaddr,tstun}, wgengine: support MagicDNS on IPv6 2022-01-04 14:37:22 -08:00
local_test.go cmd/tailscaled: add -state=mem: to support creation of an ephemeral node. 2022-02-18 13:40:39 -08:00
local.go ipn/ipnlocal: use views for Peer.PrimaryRoutes and Peer.Tags 2022-02-22 10:09:02 -08:00
loglines_test.go cmd/tailscaled: add -state=mem: to support creation of an ephemeral node. 2022-02-18 13:40:39 -08:00
peerapi_h2c.go ipn/ipnlocal: add HTTP/2 h2c server support to peerapi on non-mobile platforms 2021-12-06 16:39:14 -08:00
peerapi_macios_ext.go net/tsdial: move macOS/iOS peerapi sockopt logic from LocalBackend 2021-12-01 12:55:31 -08:00
peerapi_test.go ipn/ipnlocal: run peerapi even if Taildrop storage not configured 2021-12-01 16:45:09 -08:00
peerapi.go net/netutil: fix regression where peerapi would get closed after 1st req 2022-02-22 13:52:18 -08:00
ssh_stub.go tailcfg, ipn/ipnlocal: add Hostinfo.SSH_HostKeys, send when SSH enabled 2022-02-17 15:46:57 -08:00
ssh.go tailcfg, ipn/ipnlocal: add Hostinfo.SSH_HostKeys, send when SSH enabled 2022-02-17 15:46:57 -08:00
state_test.go cmd/tailscaled: add -state=mem: to support creation of an ephemeral node. 2022-02-18 13:40:39 -08:00