summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/nat.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/python/vyos/nat.py b/python/vyos/nat.py
index e1dfff541..8a311045a 100644
--- a/python/vyos/nat.py
+++ b/python/vyos/nat.py
@@ -71,8 +71,7 @@ def parse_nat_rule(rule_conf, rule_id, nat_type, ipv6=False):
else:
translation_output.append('to')
if addr:
- if ipv6:
- addr = bracketize_ipv6(addr)
+ addr = bracketize_ipv6(addr)
translation_output.append(addr)
options = []