diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2019-03-11 10:28:22 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2019-03-11 10:28:22 +0100 |
commit | 084f51c7db678eca0cf1bfb7398088fba2dbb3cd (patch) | |
tree | 415a88583e90ff47a8b1950decadf48e398037a8 /peerdemo | |
parent | 18bb52554f8dbaa72cfb6ca72ebd64c04b738950 (diff) | |
download | vdr-084f51c7db678eca0cf1bfb7398088fba2dbb3cd.tar.gz vdr-084f51c7db678eca0cf1bfb7398088fba2dbb3cd.tar.bz2 |
Fixed opening the UDP port in peerdemo
Diffstat (limited to 'peerdemo')
-rwxr-xr-x | peerdemo | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |