mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-02 15:16:38 +00:00
Revert debug changes
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
"net/netip"
|
"net/netip"
|
||||||
|
"runtime"
|
||||||
"sync"
|
"sync"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
@@ -416,18 +417,14 @@ func candidateViaRoutes(candidate ice.Candidate, clientRoutes route.HAMap) bool
|
|||||||
}
|
}
|
||||||
|
|
||||||
func candidateTypes() []ice.CandidateType {
|
func candidateTypes() []ice.CandidateType {
|
||||||
return []ice.CandidateType{ice.CandidateTypeRelay}
|
if hasICEForceRelayConn() {
|
||||||
/*
|
return []ice.CandidateType{ice.CandidateTypeRelay}
|
||||||
if hasICEForceRelayConn() {
|
}
|
||||||
return []ice.CandidateType{ice.CandidateTypeRelay}
|
// TODO: remove this once we have refactored userspace proxy into the bind package
|
||||||
}
|
if runtime.GOOS == "ios" {
|
||||||
// TODO: remove this once we have refactored userspace proxy into the bind package
|
return []ice.CandidateType{ice.CandidateTypeHost, ice.CandidateTypeServerReflexive}
|
||||||
if runtime.GOOS == "ios" {
|
}
|
||||||
return []ice.CandidateType{ice.CandidateTypeHost, ice.CandidateTypeServerReflexive}
|
return []ice.CandidateType{ice.CandidateTypeHost, ice.CandidateTypeServerReflexive, ice.CandidateTypeRelay}
|
||||||
}
|
|
||||||
return []ice.CandidateType{ice.CandidateTypeHost, ice.CandidateTypeServerReflexive, ice.CandidateTypeRelay}
|
|
||||||
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func candidateTypesP2P() []ice.CandidateType {
|
func candidateTypesP2P() []ice.CandidateType {
|
||||||
|
|||||||
Reference in New Issue
Block a user