summaryrefslogtreecommitdiff
path: root/peerdemo
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2019-03-11 10:28:22 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2019-03-11 10:28:22 +0100
commit084f51c7db678eca0cf1bfb7398088fba2dbb3cd (patch)
tree415a88583e90ff47a8b1950decadf48e398037a8 /peerdemo
parent18bb52554f8dbaa72cfb6ca72ebd64c04b738950 (diff)
downloadvdr-084f51c7db678eca0cf1bfb7398088fba2dbb3cd.tar.gz
vdr-084f51c7db678eca0cf1bfb7398088fba2dbb3cd.tar.bz2
Fixed opening the UDP port in peerdemo
Diffstat (limited to 'peerdemo')
-rwxr-xr-xpeerdemo2
1 files changed, 1 insertions, 1 deletions
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