Documentation ¶
Index ¶
Constants ¶
View Source
const ( CmdAuth = iota CmdHeartbeat CmdData )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type C2SAuth ¶
type C2SAuth struct { Key string `json:"key"` Domain string `json:"domain"` Forward []ForwardItem `json:"forwards"` }
type C2SHeartbeat ¶
type C2SHeartbeat struct{}
type ForwardItem ¶
type ForwardItem struct { // forward protocol. eg: tcp, udp, https, http Protocol string `json:"protocol"` // forward ports // key is the port opennotrd listen // value is local port Ports map[int]string `json:"ports"` // local ip, default is 127.0.0.1 // the traffic will be forward to $LocalIP:$LocalPort // for example: 127.0.0.1:8080. 192.168.31.65:8080 LocalIP string `json:"localIP"` // raw config pass to server RawConfig string `json:"rawConfig"` }
type ProxyProtocol ¶ added in v1.0.3
type S2CHeartbeat ¶
type S2CHeartbeat struct { }
Click to show internal directories.
Click to hide internal directories.