Skip to content

Commit

Permalink
Support IPv6.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 14, 2016
1 parent 01b4be5 commit 3d19225
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions IcculusFinger_daemon.pl
Expand Up @@ -122,7 +122,7 @@
# toggled via command line options (--daemonize, --no-daemonize, -d), but
# this sets the default. Daemonizing tends to speed up processing (since the
# script stays loaded/compiled), but may cause problems on systems that
# don't have a functional fork() or IO::Socket::INET package. If you don't
# don't have a functional fork() or IO::Socket::IP package. If you don't
# daemonize, this program reads requests from stdin and writes results to
# stdout, which makes it suitable for command line use or execution from
# inetd and equivalents.
Expand Down Expand Up @@ -1592,8 +1592,9 @@ sub daemon_upkeep {
$SIG{TERM} = \&signal_catcher;
$SIG{INT} = \&signal_catcher;

use IO::Socket::INET;
my $listensock = IO::Socket::INET->new(LocalPort => $server_port,
use IO::Socket::IP;
my $listensock = IO::Socket::IP->new(LocalHost => '::',
LocalPort => $server_port,
Type => SOCK_STREAM,
ReuseAddr => 1,
Listen => $max_connects);
Expand Down

0 comments on commit 3d19225

Please sign in to comment.