fix: ip rule postdown

This commit is contained in:
Kirigaya Kazuto 2022-02-01 20:14:08 +00:00
parent a818172444
commit dcacb508fc

View File

@ -252,7 +252,7 @@ class Parser:
if current_lookup:
for ip_cidr in current_allowed:
self.result_postup.append('PostUp=ip rule add from {} lookup {}'.format(ip_cidr, current_lookup))
self.result_postup.append('PostUp=ip rule del from {} lookup {}'.format(ip_cidr, current_lookup))
self.result_postdown.append('PostDown=ip rule del from {} lookup {}'.format(ip_cidr, current_lookup))
def get_result(self):
current_time = time.strftime("%Y-%m-%d %H:%M:%S")