summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-10-11 19:29:23 +0200
committerChristian Poessinger <christian@poessinger.com>2020-10-11 19:35:24 +0200
commit0cbb195d197e8e741269e0088564a4198256bef0 (patch)
treeacdff4e3a7d40c1c56b4e69aab120aee4e8fb129
parent7613fb4d98a7a4f00288066a771c601caf6ef037 (diff)
downloadvyos-1x-0cbb195d197e8e741269e0088564a4198256bef0.tar.gz
vyos-1x-0cbb195d197e8e741269e0088564a4198256bef0.zip
tftp-server: T2973: bugfix IPv6 listen address/port combination
The mandatory colon for separating the IPv6 address and port was missing. (cherry picked from commit c30849469492d05db9f4a8be49cc6705e139171e)
-rwxr-xr-xsrc/conf_mode/tftp_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/tftp_server.py b/src/conf_mode/tftp_server.py
index ff7cad0c9..8592de56e 100755
--- a/src/conf_mode/tftp_server.py
+++ b/src/conf_mode/tftp_server.py
@@ -101,7 +101,7 @@ def generate(tftpd):
if vyos.validate.is_ipv4(listen):
config['listen'] = [listen + ":" + tftpd['port'] + " -4"]
else:
- config['listen'] = ["[" + listen + "]" + tftpd['port'] + " -6"]
+ config['listen'] = ["[" + listen + "]:" + tftpd['port'] + " -6"]
tmpl = jinja2.Template(config_tmpl)
config_text = tmpl.render(config)