Skip to content

Commit

Permalink
Add minimal support for ipv6 addresses (PR #50)
Browse files Browse the repository at this point in the history
  • Loading branch information
vxgmichel committed Mar 10, 2019
1 parent 22d16b6 commit 68ca1a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aioconsole/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def run(host='localhost', port=8000):

def parse_server(server, parser=None):
try:
host, port = server.split(':')
host, port = server.rsplit(':', maxsplit=1)
except ValueError:
host, port = 'localhost', server
try:
Expand Down

0 comments on commit 68ca1a0

Please sign in to comment.