Documentation
¶
Index ¶
- Constants
- func LinkAuth(w http.ResponseWriter, r *http.Request)
- func LinkCstp(conn net.Conn, bufRW *bufio.ReadWriter, cSess *sessdata.ConnSession)
- func LinkDtls(conn net.Conn, cSess *sessdata.ConnSession)
- func LinkHome(w http.ResponseWriter, r *http.Request)
- func LinkIpvtap(cSess *sessdata.ConnSession) error
- func LinkMacvtap(cSess *sessdata.ConnSession) error
- func LinkOtpQr(w http.ResponseWriter, r *http.Request)
- func LinkTap(cSess *sessdata.ConnSession) error
- func LinkTun(cSess *sessdata.ConnSession) error
- func LinkTunnel(w http.ResponseWriter, r *http.Request)
- func Start()
- func Stop()
- type ClientRequest
- type LinkDriver
- type RequestData
- type Vtap
Constants ¶
View Source
const BufferSize = 2048
Variables ¶
This section is empty.
Functions ¶
func LinkCstp ¶
func LinkCstp(conn net.Conn, bufRW *bufio.ReadWriter, cSess *sessdata.ConnSession)
func LinkTunnel ¶
func LinkTunnel(w http.ResponseWriter, r *http.Request)
Types ¶
type ClientRequest ¶
type ClientRequest struct {
XMLName xml.Name `xml:"config-auth"`
Client string `xml:"client,attr"` // 一般都是 vpn
Type string `xml:"type,attr"` // 请求类型 init logout auth-reply
AggregateAuthVersion string `xml:"aggregate-auth-version,attr"` // 一般都是 2
Version string `xml:"version"` // 客户端版本号
GroupAccess string `xml:"group-access"` // 请求的地址
GroupSelect string `xml:"group-select"` // 选择的组名
SessionId string `xml:"session-id"`
SessionToken string `xml:"session-token"`
Auth auth `xml:"auth"`
DeviceId deviceId `xml:"device-id"`
MacAddressList macAddressList `xml:"mac-address-list"`
}
type LinkDriver ¶
type LinkDriver interface {
io.ReadWriteCloser
Name() string
}
Click to show internal directories.
Click to hide internal directories.