diff options
author | Daniil Baturin <daniil@vyos.io> | 2023-11-20 18:13:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 18:13:19 +0000 |
commit | 3ab206b04350aec4872ed72ae4bd3440a47204f0 (patch) | |
tree | fc9732b59bb32531bb59bf385b154b3165a49f51 /src/services/vyos-http-api-server | |
parent | 13f6688bdbdeaf869ace5c892154c14c4b007d43 (diff) | |
parent | f5e43b1361fb59a9c260739bdb28729d5119507c (diff) | |
download | vyos-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/vyos-http-api-server')
-rwxr-xr-x | src/services/vyos-http-api-server | 10 |
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(): |