diff options
author | Daniil Baturin <daniil@baturin.org> | 2019-09-04 17:46:40 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2019-09-04 17:46:40 +0200 |
commit | 77e4de232feea979ce55abd60d7dc9352b5bfe86 (patch) | |
tree | 9a3c5238ef9bd21bfb462b914e21a884734bfc7b /src/conf_mode | |
parent | e695dee0f587285526e947e0e4ae5cd6581e9f12 (diff) | |
download | vyos-1x-77e4de232feea979ce55abd60d7dc9352b5bfe86.tar.gz vyos-1x-77e4de232feea979ce55abd60d7dc9352b5bfe86.zip |
[service https] T1443: correct the listen-address option in the script.
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/https.py | 8 |
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 |