summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-11-20 18:13:19 +0000
committerGitHub <noreply@github.com>2023-11-20 18:13:19 +0000
commit3ab206b04350aec4872ed72ae4bd3440a47204f0 (patch)
treefc9732b59bb32531bb59bf385b154b3165a49f51 /src/services
parent13f6688bdbdeaf869ace5c892154c14c4b007d43 (diff)
parentf5e43b1361fb59a9c260739bdb28729d5119507c (diff)
downloadvyos-1x-3ab206b04350aec4872ed72ae4bd3440a47204f0.tar.gz
vyos-1x-3ab206b04350aec4872ed72ae4bd3440a47204f0.zip
Merge pull request #2508 from c-po/t5762-https-api-socket
http: T5762: api: make API socket backend communication the one and only default
Diffstat (limited to 'src/services')
-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():