mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
cleanup previous
This commit is contained in:
parent
d6bfe637da
commit
d105d35cf8
@ -52,8 +52,7 @@ if __name__ == '__main__':
|
||||
# Test given address against tables
|
||||
for table in tables:
|
||||
sp = subprocess.run(['/sbin/pfctl', '-t', table, '-Ttest', sys.argv[1]], capture_output=True, text=True)
|
||||
line = sp.stderr.strip()
|
||||
if line.find("1/1") == 0:
|
||||
if sp.stderr.strip().find("1/1") == 0:
|
||||
result['matches'].append(table)
|
||||
print(ujson.dumps(result))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user