Skip to content

Commit afa5481

Browse files
author
德彬 葛
committed
修改NB_ICE_FORCE_RELAY_CONN默认配置
1 parent 916f410 commit afa5481

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

client/internal/peer/conn.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ func (conn *Conn) reCreateAgent() error {
265265
func (conn *Conn) candidateTypes() []ice.CandidateType {
266266
if hasICEForceRelayConn() {
267267
log.Info("ICE force relay connection is true")
268-
log.Debug("ICE force relay connection is true")
269268
return []ice.CandidateType{ice.CandidateTypeRelay}
270269
}
271270
// TODO: remove this once we have refactored userspace proxy into the bind package

client/internal/peer/env_config.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,5 @@ func iceRelayAcceptanceMinWait() time.Duration {
6666

6767
func hasICEForceRelayConn() bool {
6868
disconnectedTimeoutEnv := os.Getenv(envICEForceRelayConn)
69-
log.Infof("env ICE force relay connection is %s", disconnectedTimeoutEnv)
70-
log.Debugf("env ICE force relay connection is %s", disconnectedTimeoutEnv)
71-
return strings.ToLower(disconnectedTimeoutEnv) == "true"
69+
return strings.ToLower(disconnectedTimeoutEnv) != "false"
7270
}

0 commit comments

Comments
 (0)