summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-09-04 17:46:40 +0200
committerDaniil Baturin <daniil@baturin.org>2019-09-04 17:47:14 +0200
commitf0281a9bbb77ceb1ed37edbfb2e1dccbafa6bedf (patch)
tree35b8001110e2269558313bcd9951461164f833ec /src/conf_mode
parent9e42f2f599e8bf3976277daca7adefe0ec4f143c (diff)
downloadvyos-1x-f0281a9bbb77ceb1ed37edbfb2e1dccbafa6bedf.tar.gz
vyos-1x-f0281a9bbb77ceb1ed37edbfb2e1dccbafa6bedf.zip
[service https] T1443: correct the listen-address option in the script.
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/https.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conf_mode/https.py b/src/conf_mode/https.py
index d5aa1f5b3..2e7aeb5a4 100755
--- a/src/conf_mode/https.py
+++ b/src/conf_mode/https.py
@@ -133,12 +133,12 @@ def get_config():
else:
conf.set_level('service https')
- if conf.exists('listen-addresses'):
+ if conf.exists('listen-address'):
addrs = {}
- for addr in conf.list_nodes('listen-addresses'):
+ for addr in conf.list_nodes('listen-address'):
addrs[addr] = ['_']
- if conf.exists('listen-addresses {0} server-names'.format(addr)):
- names = conf.return_values('listen-addresses {0} server-names'.format(addr))
+ if conf.exists('listen-address {0} server-names'.format(addr)):
+ names = conf.return_values('listen-address {0} server-names'.format(addr))
addrs[addr] = names[:]
https['listen_addresses'] = addrs