scripts/mailtest: fix socket family check.
authorJan-Philip Gehrcke <jgehrcke@googlemail.com>
Tue, 22 Jul 2014 14:14:41 +0000 (16:14 +0200)
committerJan-Philip Gehrcke <jgehrcke@googlemail.com>
Tue, 22 Jul 2014 14:14:41 +0000 (16:14 +0200)
commit7221309ebb462b05e6582dd9a1804b657ff01b7f
treebd373e634b54ffb82fdd3f956777a0bcda9ce7df
parent093a73b4ef89c1b35b2cf41a302da613590cdb08
scripts/mailtest: fix socket family check.

There is no AddressFamily attribute:

Traceback (most recent call last):
  File "/var/docker/scripts/mailtest", line 140, in <module>
    do_tls(smtp,smtp_sslv)
  File "/var/docker/scripts/mailtest", line 44, in do_tls
    if conn.sock.family == socket.AddressFamily.AF_INET:
AttributeError: 'module' object has no attribute 'AddressFamily'

However, there is `socket.AF_INET` etc.
scripts/mailtest