Need to decode the subprocess.run bytes to ascii
This commit is contained in:
parent
ea325b0686
commit
ee38b9d5e8
@ -94,7 +94,7 @@ def create_app():
|
||||
verbose=True)
|
||||
result = [entry.groupdict() for entry in
|
||||
re.finditer(_PFCTL_TABLE_PAT,
|
||||
'\n'.join(res),
|
||||
'\n'.join([x.decode('ascii') for x in res]),
|
||||
re.MULTILINE|re.VERBOSE)]
|
||||
|
||||
return jsonify({'anchor': f'f2b-jail/{remote_user}',
|
||||
|
Loading…
x
Reference in New Issue
Block a user