Skip to content

Commit

Permalink
fix(access_url): do not add port if 0
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed May 7, 2023
1 parent 896e099 commit ba9acb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authcaptureproxy/auth_capture_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def modifiers(self, value: Dict[Text, Union[Callable, Dict[Text, Callable]]]) ->

def access_url(self) -> URL:
"""Return access url for proxy with port."""
return self._proxy_url.with_port(self.port)
return self._proxy_url.with_port(self.port) if self.port != 0 else self._proxy_url

async def change_host_url(self, new_url: URL) -> None:
"""Change the host url of the proxy.
Expand Down

0 comments on commit ba9acb4

Please sign in to comment.