fix: missing SetIP

This commit is contained in:
Derrick Hammer 2024-03-10 08:57:32 -04:00
parent 2a6c661b49
commit 195abfdf20
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -154,6 +154,10 @@ func (p *WebSocketPeer) GetIP() net.Addr {
return ipAddr
}
func (p *WebSocketPeer) SetIP(ip net.Addr) {
p.ip = ip
}
func (b *WebSocketPeer) GetIPString() string {
return b.GetIP().String()
}