- remove direct field from status

- add randomisation factor for reconnection
- fix rosenpass status
This commit is contained in:
Zoltán Papp
2024-07-17 16:26:41 +02:00
parent 03e8acccde
commit 7162e0a2ac
8 changed files with 218 additions and 241 deletions

View File

@@ -59,7 +59,6 @@ type ICEConnInfo struct {
RemoteIceCandidateType string
RemoteIceCandidateEndpoint string
LocalIceCandidateEndpoint string
Direct bool
Relayed bool
RelayedOnLocal bool
}
@@ -187,7 +186,6 @@ func (w *WorkerICE) OnNewOffer(remoteOfferAnswer *OfferAnswer) {
RemoteIceCandidateType: pair.Remote.Type().String(),
LocalIceCandidateEndpoint: fmt.Sprintf("%s:%d", pair.Local.Address(), pair.Local.Port()),
RemoteIceCandidateEndpoint: fmt.Sprintf("%s:%d", pair.Remote.Address(), pair.Remote.Port()),
Direct: !isRelayCandidate(pair.Local),
Relayed: isRelayed(pair),
RelayedOnLocal: isRelayCandidate(pair.Local),
}