SocketProtector is a type representing a function that overrides Android's VpnService.protect(). Android's VPN hooks are necessary to capture and redirect all of a phone's traffic through the MASQUE tunnel, but to avoid an infinite loop, the traffic sent to the MASQUE proxy needs to be exempted fro
func(fileDescriptor int) error
| 12 | // that redirection. This function enables "protection" of the given file |
| 13 | // descriptor (the underlying system fd for the MASQUE tunnel) from Android's VPN. |
| 14 | type SocketProtector func(fileDescriptor int) error |
| 15 | |
| 16 | func dialerControlProtect(prot SocketProtector, logger *slog.Logger) func(network, address string, c syscall.RawConn) error { |
| 17 | return func(network, address string, c syscall.RawConn) error { |
nothing calls this directly
no outgoing calls
no test coverage detected