summaryrefslogtreecommitdiff
path: root/src/conf_mode/tftp_server.py
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:34:23 +0200
commitc30849469492d05db9f4a8be49cc6705e139171e (patch)
tree05a9ecd528c9cdbaa6a1323e10aa57382978e736 /src/conf_mode/tftp_server.py
parent1acc499f5e50a4e9b2c4738b29f41b2c3274bc78 (diff)
downloadvyos-1x-c30849469492d05db9f4a8be49cc6705e139171e.tar.gz
vyos-1x-c30849469492d05db9f4a8be49cc6705e139171e.zip
tftp-server: T2973: bugfix IPv6 listen address/port combination
The mandatory colon for separating the IPv6 address and port was missing.
Diffstat (limited to 'src/conf_mode/tftp_server.py')
-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 ad5ee9c33..32665ebc7 100755
--- a/src/conf_mode/tftp_server.py
+++ b/src/conf_mode/tftp_server.py
@@ -100,7 +100,7 @@ def generate(tftpd):
if is_ipv4(listen):
config['listen'] = [listen + ":" + tftpd['port'] + " -4"]
else:
- config['listen'] = ["[" + listen + "]" + tftpd['port'] + " -6"]
+ config['listen'] = ["[" + listen + "]:" + tftpd['port'] + " -6"]
file = config_file + str(idx)
render(file, 'tftp-server/default.tmpl', config)