Documentation ¶
Index ¶
Constants ¶
View Source
const ( TCP NetWork = iota UDP HTTP Type = iota HTTPCONNECT SOCKS REDIR TPROXY TEST )
Socks addr type
View Source
const (
DefaultTLSTimeout = 5 * time.Second
)
Variables ¶
View Source
var ( Version = "v0.15.0" BuildTime = "unknown time" )
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { NetWork NetWork `json:"network"` // tcp =3 udp = 4 Type Type `json:"type"` SrcIP net.IP `json:"sourceIP"` DstIP net.IP `json:"destinationIP"` SrcPort string `json:"sourcePort"` DstPort string `json:"destinationPort"` Host string `json:"host"` Timeout time.Duration }
Metadata is used to store connection address
func (*Metadata) RemoteAddress ¶
func (*Metadata) SourceAddress ¶
Click to show internal directories.
Click to hide internal directories.