summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xLib/smtpd.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/smtpd.py b/Lib/smtpd.py
index 9406de1..cf6821f 100755
--- a/Lib/smtpd.py
+++ b/Lib/smtpd.py
@@ -277,9 +277,7 @@ class SMTPServer(asyncore.dispatcher):
asyncore.dispatcher.__init__(self)
self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
# try to re-use a server port if possible
- self.socket.setsockopt(
- socket.SOL_SOCKET, socket.SO_REUSEADDR,
- self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR) | 1)
+ self.set_reuse_addr()
self.bind(localaddr)
self.listen(5)
print >> DEBUGSTREAM, \