From 65bc352db6385cb8d613cf29540daf2fce29f5da Mon Sep 17 00:00:00 2001 From: Daan Hoogland Date: Tue, 9 Mar 2021 17:51:01 +0100 Subject: [PATCH] read files in vr as list(byte[]) --- systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py b/systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py index 16799707062..31112ff5128 100755 --- a/systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py +++ b/systemvm/debian/opt/cloud/bin/cs/CsNetfilter.py @@ -87,11 +87,11 @@ class CsNetfilters(object): def get_all_rules(self): for i in CsHelper.execute("iptables-save"): - if i.startswith('*'): # Table + if i.startswith(b'*'): # Table self.table.add(i[1:]) - if i.startswith(':'): # Chain + if i.startswith(b':'): # Chain self.chain.add(self.table.last(), i[1:].split(' ')[0]) - if i.startswith('-A'): # Rule + if i.startswith(b'-A'): # Rule self.chain.add_rule(i.split()[1]) rule = CsNetfilter() rule.parse(i)