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 { // RemoteWgListenPort is a WireGuard port of a remote peer. // It is used instead of the hardcoded 51820 port. RemoteWgListenPort int // contains filtered or unexported fields }
NoProxy is used when there is no need for a proxy between ICE and Wireguard. This is possible in either of these cases: - peers are in the same local network - one of the peers has a public static IP (host) NoProxy will just update remote peer with a remote host and fixed Wireguard port (r.g. 51820). In order NoProxy to work, Wireguard port has to be fixed for the time being.
func NewNoProxy ¶
NewNoProxy creates a new NoProxy with a provided config and remote peer's WireGuard listen port
type WireguardProxy ¶
type WireguardProxy struct {
// contains filtered or unexported fields
}
WireguardProxy proxies
func NewWireguardProxy ¶
func NewWireguardProxy(config Config) *WireguardProxy
func (*WireguardProxy) Close ¶
func (p *WireguardProxy) Close() error
func (*WireguardProxy) Type ¶
func (p *WireguardProxy) Type() Type
Click to show internal directories.
Click to hide internal directories.