Skip to content

Commit

Permalink
Corrected IPv6 double stack activation calls
Browse files Browse the repository at this point in the history
The utility method set_double_stack() was given the socket module,
instead of self.socket... :/
  • Loading branch information
tcalmant committed Aug 29, 2014
1 parent e061c3d commit 77f5c4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pelix/http/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def __init__(self, server_address, request_handler_class, logger=None):
if self.address_family == socket.AF_INET6:
# Explicitly ask to be accessible both by IPv4 and IPv6
try:
pelix.ipv6utils.set_double_stack(socket)
pelix.ipv6utils.set_double_stack(self.socket)
except AttributeError as ex:
if logger is not None:
logger.exception("System misses IPv6 constant: %s", ex)
Expand Down
2 changes: 1 addition & 1 deletion pelix/shell/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def __init__(self, server_address, request_handler_class):
if self.address_family == socket.AF_INET6:
# Explicitly ask to be accessible both by IPv4 and IPv6
try:
pelix.ipv6utils.set_double_stack(socket)
pelix.ipv6utils.set_double_stack(self.socket)
except AttributeError as ex:
_logger.exception("System misses IPv6 constant: %s", ex)
except socket.error as ex:
Expand Down

0 comments on commit 77f5c4c

Please sign in to comment.