Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
b808d892
Commit
b808d892
authored
Oct 14, 2014
by
Felix Kaiser
Committed by
Jason Madden
Mar 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix: ipv6: when binding to "", use AF_INET6
That'll make the socket work both with IPv4 and IPv6.
parent
7e0da131
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gevent/baseserver.py
gevent/baseserver.py
+3
-3
No files found.
gevent/baseserver.py
View file @
b808d892
...
...
@@ -375,7 +375,7 @@ def _extract_family(host):
def
_parse_address
(
address
):
if
isinstance
(
address
,
tuple
):
if
':'
in
address
[
0
]:
if
not
address
[
0
]
or
':'
in
address
[
0
]:
return
_socket
.
AF_INET6
,
address
return
_socket
.
AF_INET
,
address
elif
isinstance
(
address
,
string_types
):
...
...
@@ -386,9 +386,9 @@ def _parse_address(address):
host
=
''
return
family
,
(
host
,
int
(
port
))
else
:
return
_socket
.
AF_INET
,
(
''
,
int
(
address
))
return
_socket
.
AF_INET
6
,
(
''
,
int
(
address
))
elif
isinstance
(
address
,
integer_types
):
return
_socket
.
AF_INET
,
(
''
,
int
(
address
))
return
_socket
.
AF_INET
6
,
(
''
,
int
(
address
))
else
:
raise
TypeError
(
'Expected tuple or string, got %s'
%
type
(
address
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment