use IO::Socket::IP and fix null reply
[spider.git] / perl / DXUDP.pm
index 01c3b3b0339e4e37dc353d9e469b2426bb353cbd..fda14c6f8680ff43e9f1b1cae09adfa641b16810 100644 (file)
@@ -108,7 +108,7 @@ sub start {
        my $host = $args->{LocalAddr} || $args->{host} || '0.0.0.0';
        my $port = $args->{LocalPort} || $args->{port} || 1234;
        
-    $socket = IO::Socket::INET6->new(
+    $socket = IO::Socket::IP->new(
                   LocalAddr => $host,
                   LocalPort => $port,
                   Proto => 'udp',