Skip to content
Snippets Groups Projects
Commit c5f4ad65 authored by Vincent Texier's avatar Vincent Texier
Browse files

[fix] #58 fix api.endpoint after rebase

parent d6acf37d
No related branches found
No related tags found
No related merge requests found
......@@ -389,9 +389,12 @@ class WS2PEndpoint(Endpoint):
:param proxy: Proxy url
:return:
"""
return ConnectionHandler(
"https", "wss", self.server, self.port, self.path, session, proxy
)
http_scheme = 'http'
websocket_scheme = 'ws'
if self.port == 443:
http_scheme += 's'
websocket_scheme += 's'
return ConnectionHandler(http_scheme, websocket_scheme, self.server, self.port, self.path, session, proxy)
def __str__(self) -> str:
return self.inline()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment