Skip to content

Commit 7672e03

Browse files
committed
Update endpoints.py
1 parent 7e67796 commit 7672e03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin/core/endpoints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ def get_schain_endpoint(schain_name, ws=False):
187187
endpoints = endpoints_for_schain(schains_internal_contract, nodes_contract, schain_id)
188188
for node in endpoints['nodes']:
189189
if ws:
190-
endpoint = (node['ws_domain'] if HTTP_ENDPOINT == 'true'
190+
endpoint = (node['ws_endpoint'] if HTTP_ENDPOINT == 'true'
191191
else node['wss_endpoint_domain'])
192192
else:
193-
endpoint = (node['http_domain'] if HTTP_ENDPOINT == 'true'
193+
endpoint = (node['http_endpoint'] if HTTP_ENDPOINT == 'true'
194194
else node['https_endpoint_domain'])
195195
if check_endpoint(endpoint, ws):
196196
return endpoint

0 commit comments

Comments
 (0)