fix: missing SetIP
This commit is contained in:
parent
2a6c661b49
commit
195abfdf20
|
@ -154,6 +154,10 @@ func (p *WebSocketPeer) GetIP() net.Addr {
|
||||||
return ipAddr
|
return ipAddr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (p *WebSocketPeer) SetIP(ip net.Addr) {
|
||||||
|
p.ip = ip
|
||||||
|
}
|
||||||
|
|
||||||
func (b *WebSocketPeer) GetIPString() string {
|
func (b *WebSocketPeer) GetIPString() string {
|
||||||
return b.GetIP().String()
|
return b.GetIP().String()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue