Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fixed address problem occurring on linux when using localhost (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
forman committed May 31, 2018
1 parent a960486 commit 3889837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cate/util/web/webapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def start(self,

print(f'{name}: started service, listening on {join_address_and_port(address, port)}')

self.server = application.listen(port, address=address or 'localhost')
self.server = application.listen(port, address='' if address == 'localhost' else address)
# Ensure we have the same event loop in all threads
asyncio.set_event_loop_policy(_GlobalEventLoopPolicy(asyncio.get_event_loop()))
# Register handlers for common termination signals
Expand Down

0 comments on commit 3889837

Please sign in to comment.