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/netcheck
James Tucker de8e55fda6 net/netcheck,wgengine/magicsock: reduce coupling between netcheck and magicsock
Netcheck no longer performs I/O itself, instead it makes requests via
SendPacket and expects users to route reply traffic to
ReceiveSTUNPacket.

Netcheck gains a Standalone function that stands up sockets and
goroutines to implement I/O when used in a standalone fashion.

Magicsock now unconditionally routes STUN traffic to the netcheck.Client
that it hosts, and plumbs the send packet sink.

The CLI is updated to make use of the Standalone mode.

Fixes #8723

Signed-off-by: James Tucker <james@tailscale.com>
1 year ago
..
netcheck.go net/netcheck,wgengine/magicsock: reduce coupling between netcheck and magicsock 1 year ago
netcheck_test.go net/netcheck,wgengine/magicsock: reduce coupling between netcheck and magicsock 1 year ago
standalone.go net/netcheck,wgengine/magicsock: reduce coupling between netcheck and magicsock 1 year ago