From 084f51c7db678eca0cf1bfb7398088fba2dbb3cd Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 11 Mar 2019 10:28:22 +0100 Subject: Fixed opening the UDP port in peerdemo --- peerdemo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'peerdemo') diff --git a/peerdemo b/peerdemo index 3c2cb730..59bb983c 100755 --- a/peerdemo +++ b/peerdemo @@ -37,7 +37,7 @@ $TcpPort = $Port; $UdpPort = $DefaultSvdrpPort; $TcpSocket = new IO::Socket::INET(Listen => 5, LocalPort => $TcpPort, Proto => "tcp", ReusePort => 1) || die "$!"; -$UdpSocket = new IO::Socket::INET( LocalPort => $UdpPort, Proto => "udp", ReusePort => 1) || die "$!"; +$UdpSocket = new IO::Socket::INET( LocalPort => $UdpPort, Proto => "udp", ReuseAddr => 1) || die "$!"; $SvdrpSelect = new IO::Select($TcpSocket); setsockopt($UdpSocket, SOL_SOCKET, SO_RCVTIMEO, pack('L!L!', 0, 1000)); # 1ms timeout on UDP socket -- cgit v1.2.3