mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
change bandwidth type from int to int64 to prevent overflow
This commit is contained in:
parent
115ba6a745
commit
2c599f8827
7 changed files with 36 additions and 34 deletions
|
@ -412,7 +412,7 @@ func (sf *SnowflakeProxy) makePeerConnectionFromOffer(sdp *webrtc.SessionDescrip
|
|||
log.Printf("close with error generated an error: %v", inerr)
|
||||
}
|
||||
}
|
||||
conn.bytesLogger.AddOutbound(n)
|
||||
conn.bytesLogger.AddOutbound(int64(n))
|
||||
if n != len(msg.Data) {
|
||||
panic("short write")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue