summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-05-15 13:29:29 -0500
committerJohn Estabrook <jestabro@vyos.io>2022-07-24 08:44:58 -0500
commitb882e997e18c0d63aa7a4507df9b71c81c1970d1 (patch)
tree0cc2f075a1b8728e144eb13b999ae25cac98fdd3 /src/conf_mode
parent02beb3ead3783ce18087c897c4871786449c6bd1 (diff)
downloadvyos-1x-b882e997e18c0d63aa7a4507df9b71c81c1970d1.tar.gz
vyos-1x-b882e997e18c0d63aa7a4507df9b71c81c1970d1.zip
graphql: T3993: disable introspection unless set in CLI
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/http-api.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/http-api.py b/src/conf_mode/http-api.py
index 1ea7b86cd..04113fc09 100755
--- a/src/conf_mode/http-api.py
+++ b/src/conf_mode/http-api.py
@@ -68,6 +68,8 @@ def get_config(config=None):
if conf.exists('gql'):
http_api['gql'] = True
+ if conf.exists('gql introspection'):
+ http_api['introspection'] = True
if conf.exists('socket'):
http_api['socket'] = True