summaryrefslogtreecommitdiff
path: root/src/services/vyos-http-api-server
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/services/vyos-http-api-server
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/services/vyos-http-api-server')
-rwxr-xr-xsrc/services/vyos-http-api-server10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/services/vyos-http-api-server b/src/services/vyos-http-api-server
index 3a9efb73e..daee24257 100755
--- a/src/services/vyos-http-api-server
+++ b/src/services/vyos-http-api-server
@@ -825,15 +825,7 @@ def initialization(session: ConfigSession, app: FastAPI = app):
if app.state.vyos_graphql:
graphql_init(app)
- if not server_config['socket']:
- config = ApiServerConfig(app,
- host=server_config["listen_address"],
- port=int(server_config["port"]),
- proxy_headers=True)
- else:
- config = ApiServerConfig(app,
- uds="/run/api.sock",
- proxy_headers=True)
+ config = ApiServerConfig(app, uds="/run/api.sock", proxy_headers=True)
server = ApiServer(config)
def run_server():