Skip to content

Commit

Permalink
Fix support for both IPv4 and IPv6 based on the --listen option. Give…
Browse files Browse the repository at this point in the history
…n by

Jason Coombs.  (Closes #3)
  • Loading branch information
warsaw committed Dec 23, 2015
1 parent 9da8b30 commit d8ef13d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions aiosmtpd/docs/NEWS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
NEWS for aiosmtpd
===================

1.0a2 (20XX-XX-XX)
==================
* Fix support for both IPv4 and IPv6 based on the --listen option. Given by
Jason Coombs. (Closes #3)

1.0a1 (2015-10-19)
==================
* Initial release.
4 changes: 2 additions & 2 deletions aiosmtpd/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def main(args=None):

def setup_sock(host, port):
try:
# first try to determine the sock type
# First try to determine the socket type.
info = socket.getaddrinfo(
host, port,
socket.AF_UNSPEC,
Expand All @@ -157,7 +157,7 @@ def setup_sock(host, port):
socket.AI_PASSIVE,
)
except socket.gaierror:
# infer the type from the host
# Infer the type from the host.
addr = host, port
if ':' in host:
addr += 0, 0
Expand Down
2 changes: 1 addition & 1 deletion aiosmtpd/smtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from email.errors import HeaderParseError


__version__ = '1.0a1'
__version__ = '1.0a2'
__ident__ = 'Python SMTP {}'.format(__version__)
log = logging.getLogger('mail.log')

Expand Down

0 comments on commit d8ef13d

Please sign in to comment.