Skip to content

Commit

Permalink
Ignore Carrier-grate NAT candidates.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Aug 28, 2024
1 parent c2aa740 commit 207bf8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sippy/Rtp_proxy/Session/subcommand_ice.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ def __init__(self, sdp_bc, sect):
pts = cand.split(None, 4)
if pts[2].lower() != 'udp':
continue
if pts[4].startswith('192.') and not pts[4].startswith('192.168.'):
# Carrier-grade NAT garbage
continue
self.append(f'{self.i_mod} C {cand}')

def handle_results(self, results, ur):
Expand Down

0 comments on commit 207bf8e

Please sign in to comment.