Skip to content

Commit 30e2fa5

Browse files
committed
Support for default iptables output on Debian 12.
1 parent 16b3904 commit 30e2fa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rifc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def get_local_ips(lines):
3434
for line in lines:
3535
parts = re.split('\s+', line)
3636
# Check if this is the correct line
37-
if parts[0] == 'ACCEPT' and parts[1] == 'all' and parts[4] == '0.0.0.0/0':
37+
if parts[0] == 'ACCEPT' and parts[1] in ['all', '0'] and parts[4] == '0.0.0.0/0':
3838
ip = parts[3]
3939
result.append(ip)
4040

0 commit comments

Comments
 (0)