mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
improvement(proxy): improve NAT check logging
This commit is contained in:
parent
9b04728809
commit
d346639eda
1 changed files with 3 additions and 0 deletions
|
@ -563,6 +563,9 @@ func (sf *SnowflakeProxy) makeNewPeerConnection(
|
|||
if err != nil {
|
||||
return nil, fmt.Errorf("accept: NewPeerConnection: %s", err)
|
||||
}
|
||||
pc.OnConnectionStateChange(func(pcs webrtc.PeerConnectionState) {
|
||||
log.Printf("NAT check: WebRTC: OnConnectionStateChange: %v", pcs)
|
||||
})
|
||||
|
||||
// Must create a data channel before creating an offer
|
||||
// https://github.com/pion/webrtc/wiki/Release-WebRTC@v3.0.0#a-data-channel-is-no-longer-implicitly-created-with-a-peerconnection
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue