summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-20 19:31:33 +0100
committerGitHub <noreply@github.com>2023-11-20 19:31:33 +0100
commit03740f14ff0b34c997e74511ac35dbf3c1e48309 (patch)
tree989ecacd04cf311c6bf6d86dcda1f69ff6b215c0 /src/conf_mode
parent0650054e646d5119040635fbd19ae15785c16aa8 (diff)
parent3280a153713decf28eb5c564573028df19a4e1b1 (diff)
downloadvyos-1x-03740f14ff0b34c997e74511ac35dbf3c1e48309.tar.gz
vyos-1x-03740f14ff0b34c997e74511ac35dbf3c1e48309.zip
Merge pull request #2515 from vyos/mergify/bp/sagitta/pr-2508
http: T5762: api: make API socket backend communication the one and only default (backport #2508)
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/https.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/conf_mode/https.py b/src/conf_mode/https.py
index 010490c7e..028a5007a 100755
--- a/src/conf_mode/https.py
+++ b/src/conf_mode/https.py
@@ -215,14 +215,9 @@ def generate(https):
api_data = vyos.defaults.api_data
api_settings = https.get('api', {})
if api_settings:
- port = api_settings.get('port', '')
- if port:
- api_data['port'] = port
vhosts = https.get('api-restrict', {}).get('virtual-host', [])
if vhosts:
api_data['vhost'] = vhosts[:]
- if 'socket' in list(api_settings):
- api_data['socket'] = True
if api_data:
vhost_list = api_data.get('vhost', [])