summaryrefslogtreecommitdiff
path: root/src/conf_mode/https.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2020-04-07 15:35:16 -0500
committerJohn Estabrook <jestabro@vyos.io>2020-04-07 21:38:09 -0500
commitf8fafbb05a79b50cddf870617c8796bce521ce21 (patch)
tree89db3b3cc989dcd84fd15fb6adfb21fb2d9b0cbe /src/conf_mode/https.py
parentfcce4714146a39f608ddd141338547a5a952c63f (diff)
downloadvyos-1x-f8fafbb05a79b50cddf870617c8796bce521ce21.tar.gz
vyos-1x-f8fafbb05a79b50cddf870617c8796bce521ce21.zip
http api: T2160: move 'api virtual-host' to 'api-restrict virtual-host'
Restriction of api proxy should be owned by https.py, not http-api.py.
Diffstat (limited to 'src/conf_mode/https.py')
-rwxr-xr-xsrc/conf_mode/https.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/https.py b/src/conf_mode/https.py
index e46f1a4e7..90e34cedd 100755
--- a/src/conf_mode/https.py
+++ b/src/conf_mode/https.py
@@ -94,8 +94,8 @@ def get_config():
if conf.exists('api port'):
port = conf.return_value('api port')
api_data['port'] = port
- if conf.exists('api virtual-host'):
- vhosts = conf.return_values('api virtual-host')
+ if conf.exists('api-restrict virtual-host'):
+ vhosts = conf.return_values('api-restrict virtual-host')
api_data['vhost'] = vhosts[:]
if api_data: