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/net
Aaron Klotz 4dbdb19c26 net/tshttpproxy: fix incorrect type in Windows implementation, switch to mkwinsyscall, fix memory leak
The definition of winHTTPProxyInfo was using the wrong type (uint16 vs uint32)
for its first field. I fixed that type.

Furthermore, any UTF16 strings returned in that structure must be explicitly
freed. I added code to do this.

Finally, since this is the second time I've seen type safety errors in this code,
I switched the native API calls over to use wrappers generated by mkwinsyscall.
I know that would not have helped prevent the previous two problems, but every
bit helps IMHO.

Updates https://github.com/tailscale/tailscale/issues/4811

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
2 years ago
..
dns net/dns: remove systemd-resolved ping 2 years ago
dnscache all: convert more code to use net/netip directly 2 years ago
dnsfallback all: convert more code to use net/netip directly 2 years ago
flowtrack all: convert more code to use net/netip directly 2 years ago
interfaces all: convert more code to use net/netip directly 2 years ago
netaddr all: convert more code to use net/netip directly 2 years ago
netcheck all: convert more code to use net/netip directly 2 years ago
neterror net/{neterror,dns/resolver}: move PacketWasTruncated to neterror from DNS code 3 years ago
netknob all: disable TCP keep-alives on iOS/Android 3 years ago
netns all: use various net/netip parse funcs directly 2 years ago
netstat all: convert more code to use net/netip directly 2 years ago
nettest net/nettest: deflake TestPipeTimeout 3 years ago
netutil all: convert more code to use net/netip directly 2 years ago
packet all: convert more code to use net/netip directly 2 years ago
portmapper all: convert more code to use net/netip directly 2 years ago
proxymux net/proxymux: add a listener mux that can run SOCKS and HTTP on a single socket. 3 years ago
socks5 net/netaddr: start migrating to net/netip via new netaddr adapter package 2 years ago
speedtest all: fix spelling mistakes 3 years ago
stun all: use various net/netip parse funcs directly 2 years ago
tlsdial envknob: add new package for all the strconv.ParseBool(os.Getenv(..)) 3 years ago
tsaddr all: convert more code to use net/netip directly 2 years ago
tsdial all: convert more code to use net/netip directly 2 years ago
tshttpproxy net/tshttpproxy: fix incorrect type in Windows implementation, switch to mkwinsyscall, fix memory leak 2 years ago
tstun all: convert more code to use net/netip directly 2 years ago