tailscale/net
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
..
dns
dnscache
dnsfallback
flowtrack
interfaces net/interfaces: bound Linux /proc/net/route parsing 2022-02-03 09:31:25 -08:00
netcheck envknob: add new package for all the strconv.ParseBool(os.Getenv(..)) 2022-01-24 11:51:23 -08:00
neterror
netknob all: disable TCP keep-alives on iOS/Android 2021-09-28 12:03:18 -07:00
netns
netstat
nettest
netutil
packet
portmapper
proxymux
socks5
speedtest all: fix spelling mistakes 2021-10-12 21:23:14 -07:00
stun
tlsdial
tsaddr
tsdial
tshttpproxy
tstun net/tstun: remove TODO that's done 2022-02-13 20:59:47 -08:00