-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
On a windows system, the endpoint command returns a weird string:
0.0.0.0:9997\r\n�[0m
That's why the strip here does not change the string, and this line takes the garbage part. I have solved it by using a regexp:
ips = re.findall(r'[0-9]+(?:\.[0-9]+){3}:[0-9]+', endpoint)
assert len(ips) == 1
endpoint = ips[0]
Do you think this is a possible solution that could be merged in?
Metadata
Metadata
Assignees
Labels
No labels