Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultWgKeepAlive = 25 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyProxy ¶
type DummyProxy struct {
// contains filtered or unexported fields
}
DummyProxy just sends pings to the RemoteKey peer and reads responses
func NewDummyProxy ¶
func NewDummyProxy(remote string) *DummyProxy
func (*DummyProxy) Close ¶
func (p *DummyProxy) Close() error
func (*DummyProxy) Type ¶
func (p *DummyProxy) Type() Type
type NoProxy ¶
type NoProxy struct {
// contains filtered or unexported fields
}
NoProxy is used just to configure WireGuard without any local proxy in between. Used when the WireGuard interface is userspace and uses bind.ICEBind
func NewNoProxy ¶
NewNoProxy creates a new NoProxy with a provided config
type WireGuardProxy ¶ added in v0.16.0
type WireGuardProxy struct {
// contains filtered or unexported fields
}
WireGuardProxy proxies
func NewWireGuardProxy ¶ added in v0.16.0
func NewWireGuardProxy(config Config) *WireGuardProxy
func (*WireGuardProxy) Close ¶ added in v0.16.0
func (p *WireGuardProxy) Close() error
func (*WireGuardProxy) Start ¶ added in v0.16.0
func (p *WireGuardProxy) Start(remoteConn net.Conn) error
func (*WireGuardProxy) Type ¶ added in v0.16.0
func (p *WireGuardProxy) Type() Type
Click to show internal directories.
Click to hide internal directories.