Better use wildcard source ip.

This commit is contained in:
Stefan `Sec` Zehl 2012-04-05 16:12:35 +02:00
parent 1133138f86
commit 681f809f0a
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ use Sys::Hostname;
my($iaddr,$proto,$paddr);
$iaddr = gethostbyname(hostname());
$iaddr = pack('C4', 0,0,0,0);
$proto = getprotobyname('udp');
$paddr = sockaddr_in(0, $iaddr); # 0 means let kernel pick