From 48b805c07c18e56e06d2f30a83623072c2e4c5fd Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 15 Jan 1998 22:36:13 +0000 Subject: SO_REUSEPORT should be SO_REUSEADDR. I found this in a mail of two and a half years ago from Yusuf Goolamabbas. --- Demo/sockets/mcast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/sockets/mcast.py b/Demo/sockets/mcast.py index 4cd8706..fe4aacb 100755 --- a/Demo/sockets/mcast.py +++ b/Demo/sockets/mcast.py @@ -67,7 +67,7 @@ def openmcastsock(group, port): # # Allow multiple copies of this program on one machine # (not strictly needed) - s.setsockopt(SOL_SOCKET, SO_REUSEPORT, 1) + s.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1) # # Bind it to the port s.bind(('', port)) -- cgit v0.12