From f8fafbb05a79b50cddf870617c8796bce521ce21 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 7 Apr 2020 15:35:16 -0500 Subject: 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. --- src/conf_mode/https.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/conf_mode') 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: -- cgit v1.2.3