mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Remove log when offer is nil
After !414, we started returning a nil offer from pollOffer if the proxy was not matched with a client. It's not longer an indication of failure, so we should remove the "bad offer from broker" log message.
This commit is contained in:
parent
5b479fdb13
commit
6ecd5bf6d7
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,6 @@ import (
|
|||
"crypto/rand"
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"github.com/pion/ice/v4"
|
||||
"io"
|
||||
"log"
|
||||
"net"
|
||||
|
@ -40,6 +39,8 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/pion/ice/v4"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/pion/transport/v3/stdnet"
|
||||
"github.com/pion/webrtc/v4"
|
||||
|
@ -611,7 +612,6 @@ func (sf *SnowflakeProxy) makeNewPeerConnection(
|
|||
func (sf *SnowflakeProxy) runSession(sid string) {
|
||||
offer, relayURL := broker.pollOffer(sid, sf.ProxyType, sf.RelayDomainNamePattern)
|
||||
if offer == nil {
|
||||
log.Printf("bad offer from broker")
|
||||
tokens.ret()
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue