mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Store net.Addr in clientIDAddrMap
This fixes a stats collection bug where we were converting client addresses between a string and net.Addr using the clientAddr function multiple times, resulting in an empty string for all addresses.
This commit is contained in:
parent
aefabe683f
commit
6634f2bec9
4 changed files with 55 additions and 44 deletions
|
@ -181,7 +181,7 @@ func (l *SnowflakeListener) acceptStreams(conn *kcp.UDPSession) error {
|
|||
}
|
||||
return err
|
||||
}
|
||||
l.QueueConn(&SnowflakeClientConn{Conn: stream, address: clientAddr(addr)})
|
||||
l.QueueConn(&SnowflakeClientConn{Conn: stream, address: addr})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue