Documentation ¶
Overview ¶
Package protected is used for creating "protected" connections that bypass Android's VpnService
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dial ¶
Dial creates a new protected connection, it assumes that the address has already been resolved to an IPv4 address.
- syscall API calls are used to create and bind to the specified system device (this is primarily used for Android VpnService routing functionality)
Types ¶
type DnsResponse ¶
type DnsResponse struct {
// contains filtered or unexported fields
}
func (*DnsResponse) PickRandomIP ¶
func (response *DnsResponse) PickRandomIP() (net.IP, error)
PickRandomIP picks a random IP address from a DNS response
type ProtectedConn ¶
func (*ProtectedConn) Close ¶
func (conn *ProtectedConn) Close() (err error)
Close is used to destroy a protected connection
Click to show internal directories.
Click to hide internal directories.