MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / RawIP

Method RawIP

internal/nodes/client_conn_base.go:136–144  ·  view source on GitHub ↗

RawIP 原本IP

()

Source from the content-addressed store, hash-verified

134
135// RawIP 原本IP
136func (this *BaseClientConn) RawIP() string {
137 if len(this.rawIP) > 0 {
138 return this.rawIP
139 }
140
141 ip, _, _ := net.SplitHostPort(this.rawConn.RemoteAddr().String())
142 this.rawIP = ip
143 return ip
144}
145
146// TCPConn 转换为TCPConn
147func (this *BaseClientConn) TCPConn() (tcpConn *net.TCPConn, ok bool) {

Callers 5

SetServerIdMethod · 0.95
NewClientConnFunction · 0.80
ReadMethod · 0.80
resetSYNFloodMethod · 0.80
increaseSYNFloodMethod · 0.80

Calls 2

StringMethod · 0.45
RemoteAddrMethod · 0.45

Tested by

no test coverage detected