Skip to content

Commit

Permalink
Fix backend service URL condition to handle localhost and default port
Browse files Browse the repository at this point in the history
  • Loading branch information
charlieyl committed Feb 10, 2025
1 parent 9c776ff commit b68a835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/fedml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def _get_backend_service():
lpp = get_local_on_premise_platform_port()
print(f"get_backend_service lp:{lp}, lpp:{lpp}")

if lp and lpp:
if lp and lpp and lp != "127.0.0.1" and lpp != "80":
# if lp and lpp is set, prioritize using them as the backend service url.
if str(lpp) == "80":
return f"http://{lp}"
Expand Down

0 comments on commit b68a835

Please sign in to comment.