Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer committed Oct 17, 2024
1 parent db78131 commit ae5429a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
r = requests.get(f'{srgw}/rules', timeout=1)
rules = [None, None]
for ruleid, rule in r.json().items():
if ipaddress.ip_address(args.ue_addr) in ipaddress.ip_network(
rule['Match']['ue-ip-prefix']):
if ipaddress.ip_address(args.ue_addr) == ipaddress.ip_address(
rule['Match']["gtp"]['inner-ip-src']):
if not rule['Enabled']:
rules[0] = ruleid
else:
Expand Down

0 comments on commit ae5429a

Please sign in to comment.