add ClientAddr for websocket conn

This commit is contained in:
ginuerzh
2024-10-16 20:46:45 +08:00
parent ea179a0ee6
commit 24547b4332
14 changed files with 98 additions and 37 deletions
+4
View File
@@ -153,3 +153,7 @@ func (pr *PortRange) Parse(s string) error {
func (pr *PortRange) Contains(port int) bool {
return port >= pr.Min && port <= pr.Max
}
type ClientAddr interface {
ClientAddr() net.Addr
}