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>
2022-07-27 16:33:57 -06:00
..
dns net/dns: remove systemd-resolved ping 2022-07-27 14:15:22 -07:00
dnscache all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
dnsfallback all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
flowtrack all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
interfaces all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
netaddr all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
netcheck all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
neterror net/{neterror,dns/resolver}: move PacketWasTruncated to neterror from DNS code 2022-01-03 14:03:30 -08:00
netknob all: disable TCP keep-alives on iOS/Android 2021-09-28 12:03:18 -07:00
netns all: use various net/netip parse funcs directly 2022-07-25 21:12:28 -07:00
netstat all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
nettest net/nettest: deflake TestPipeTimeout 2021-11-30 12:21:59 -08:00
netutil all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
packet all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
portmapper all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
proxymux net/proxymux: add a listener mux that can run SOCKS and HTTP on a single socket. 2021-11-29 16:49:48 -08:00
socks5 net/netaddr: start migrating to net/netip via new netaddr adapter package 2022-07-25 16:20:43 -07:00
speedtest all: fix spelling mistakes 2021-10-12 21:23:14 -07:00
stun all: use various net/netip parse funcs directly 2022-07-25 21:12:28 -07:00
tlsdial envknob: add new package for all the strconv.ParseBool(os.Getenv(..)) 2022-01-24 11:51:23 -08:00
tsaddr all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
tsdial all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00
tshttpproxy net/tshttpproxy: fix incorrect type in Windows implementation, switch to mkwinsyscall, fix memory leak 2022-07-27 16:33:57 -06:00
tstun all: convert more code to use net/netip directly 2022-07-25 21:53:49 -07:00