Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions webrepl_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import sys
import os
import struct
from urllib.parse import urlparse
try:
import usocket as socket
except ImportError:
Expand Down Expand Up @@ -185,8 +186,9 @@ def parse_remote(remote):
fname = "/"
port = 8266
if ":" in host:
host, port = host.split(":")
port = int(port)
url = urlparse(host)
host = url.hostname
port = url.port
return (host, port, fname)


Expand Down