diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/nat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/nat.py b/src/conf_mode/nat.py index 9f319fc8a..14ca7bc94 100755 --- a/src/conf_mode/nat.py +++ b/src/conf_mode/nat.py @@ -185,8 +185,8 @@ def generate(nat): # dry-run newly generated configuration tmp = run(f'nft -c -f {nftables_nat_config}') if tmp > 0: - if os.path.exists(nftables_ct_file): - os.unlink(nftables_ct_file) + if os.path.exists(nftables_nat_config): + os.unlink(nftables_nat_config) raise ConfigError('Configuration file errors encountered!') return None |