Fix basic errors found on testing
This commit is contained in:
parent
787cb1170b
commit
accfdcb61f
@ -689,7 +689,7 @@ class Firewall:
|
|||||||
entries['{:04}'.format(ruleno)] = rule.rule
|
entries['{:04}'.format(ruleno)] = rule.rule
|
||||||
return entries
|
return entries
|
||||||
|
|
||||||
def qdb_forward_entries(self, addr_family=None, type):
|
def qdb_forward_entries(self, addr_family=None, type="internal"):
|
||||||
''' In order to keep all the 'parsing' logic here and not in net.py,
|
''' In order to keep all the 'parsing' logic here and not in net.py,
|
||||||
directly separate forwarding rules from standard rules since they need
|
directly separate forwarding rules from standard rules since they need
|
||||||
to be handled differently later.
|
to be handled differently later.
|
||||||
|
@ -398,11 +398,12 @@ class NetVMMixin(qubes.events.Emitter):
|
|||||||
self.untrusted_qdb.rm(base_dir)
|
self.untrusted_qdb.rm(base_dir)
|
||||||
# write new forward rules
|
# write new forward rules
|
||||||
for key, value in vm.firewall.qdb_forward_entries(
|
for key, value in vm.firewall.qdb_forward_entries(
|
||||||
addr_family=addr_family, "internal").items():
|
addr_family=addr_family, type="internal").items():
|
||||||
|
print()
|
||||||
# code here
|
# code here
|
||||||
# signal its done
|
# signal its done
|
||||||
for key, value in vm.firewall.qdb_forward_entries(
|
for key, value in vm.firewall.qdb_forward_entries(
|
||||||
addr_family=addr_family, "external").items():
|
addr_family=addr_family, type="external").items():
|
||||||
# to fix
|
# to fix
|
||||||
for netvm in netpath:
|
for netvm in netpath:
|
||||||
self.untrusted_qdb.write(base_dir + key, value)
|
self.untrusted_qdb.write(base_dir + key, value)
|
||||||
|
Loading…
Reference in New Issue
Block a user