From: Dobrica Pavlinusic Date: Mon, 23 Mar 2009 21:55:39 +0000 (+0000) Subject: listen on IP address and port X-Git-Url: http://git.rot13.org/?p=virtual-ldap;a=commitdiff_plain;h=fc93087a8d0925aaab323e7d9a2f38be6a962992;hp=93928e3aef0157263201341fd7db2a59ea821b3e listen on IP address and port --- diff --git a/bin/ldap-koha.pl b/bin/ldap-koha.pl index d50ebbc..40c64d6 100755 --- a/bin/ldap-koha.pl +++ b/bin/ldap-koha.pl @@ -8,16 +8,16 @@ use IO::Socket; use lib 'lib'; use LDAP::Koha; -my $port = 2389; +my $listen = '10.60.0.13:2389'; my $sock = IO::Socket::INET->new( Listen => 5, Proto => 'tcp', Reuse => 1, - LocalPort => $port, + LocalAddr => $listen, ) || die; -warn "# listening on $port"; +warn "# listening on $listen"; my $sel = IO::Select->new($sock); my %Handlers;