Documentation
¶
Index ¶
Constants ¶
View Source
const ( STATUS = iota CONFIG CONNECT DISCONNECT RECONNECT INTERFACE ABORT STAT )
Variables ¶
View Source
var (
Clients []*jsonrpc2.Conn
)
Functions ¶
func Connect ¶
func Connect(ctxs ...*lib.VPNContext) error
Connect requires the frontend to populate auth.Prof first; providing base.Interface is recommended.
func DisConnect ¶
func DisConnect(ctxs ...*lib.VPNContext)
DisConnect handles intentional disconnects such as user actions or Ctrl+C, not network or TUN failures.
func SetupTunnel ¶
func SetupTunnel(reconnect bool, ctxs ...*lib.VPNContext) error
SetupTunnel is only meant for short reconnects; reconnecting after long OS sleep may fail.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.