Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/src/sip_ua_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,12 @@ enum IceTransportPolicy {
/// Only ICE candidates whose IP addresses are being relayed, such as those
/// being passed through a TURN server, will be considered.
RELAY,

/// Excludes host candidates (local/private IP addresses).
/// Only SRFLX (server reflexive from STUN) and RELAY (from TURN) candidates
/// will be gathered. This filters out localhost (127.0.0.1, ::1) and
/// private network addresses (192.168.x.x, 10.x.x.x, etc.).
NOHOST,
}

extension _IceTransportPolicyEncoding on IceTransportPolicy {
Expand All @@ -854,6 +860,8 @@ extension _IceTransportPolicyEncoding on IceTransportPolicy {
return 'all';
case IceTransportPolicy.RELAY:
return 'relay';
case IceTransportPolicy.NOHOST:
return 'nohost';
}
}
}
Expand Down
Loading