Documentation ¶
Index ¶
- func ApiDomain() string
- func AuthKey() string
- func BackgroundLogger(d time.Duration)
- func DialWg(ctx context.Context, network, address string) (net.Conn, error)
- func GetEncodedIPPort(addr netip.AddrPort) string
- func GetIPForKey(pub wgtypes.Key) netip.Addr
- func GetListenPort() int
- func GetLocalWgIp() netip.Addr
- func GetPublicKey() wgtypes.Key
- func GetTLSConfig() *tls.Config
- func GetWgDeviceInfo() (*wgtypes.Device, error)
- func Initialize() error
- func Keystorage() string
- func ListenTCPWg(addr *net.TCPAddr) (net.Listener, error)
- func LookupEncodedIPPort(sni string) *netip.AddrPort
- func Must[T any](v T, err error) T
- func RelayServer(tcpConn net.Conn, udpConn *net.UDPConn, addr net.Addr) error
- func SSLCertificateEmail() string
- func ServerIp() string
- func TestOnlyRunLocalhost() bool
- func UseRelay() bool
- func WgSetIpc(ins []string) error
- type AddPeerReq
- type AddPeerResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackgroundLogger ¶
func GetEncodedIPPort ¶
func GetListenPort ¶
func GetListenPort() int
func GetLocalWgIp ¶
func GetPublicKey ¶
func GetTLSConfig ¶
func GetWgDeviceInfo ¶
func Initialize ¶
func Initialize() error
func Keystorage ¶
func Keystorage() string
func LookupEncodedIPPort ¶
func SSLCertificateEmail ¶
func SSLCertificateEmail() string
func TestOnlyRunLocalhost ¶
func TestOnlyRunLocalhost() bool
Types ¶
type AddPeerReq ¶
type AddPeerReq struct {
Key []byte
}
type AddPeerResp ¶
Click to show internal directories.
Click to hide internal directories.