X-Git-Url: http://git.rot13.org/?p=virtual-ldap;a=blobdiff_plain;f=bin%2Fldap-koha.pl;h=e97e1efc2813012fcdb730755e08b2ba4ee86b1e;hp=40c64d651255c65f376e36383d31b1f4688fae0d;hb=81326d819a2f6c6fdd076087f54fb82c3a44739e;hpb=fc93087a8d0925aaab323e7d9a2f38be6a962992 diff --git a/bin/ldap-koha.pl b/bin/ldap-koha.pl index 40c64d6..e97e1ef 100755 --- a/bin/ldap-koha.pl +++ b/bin/ldap-koha.pl @@ -8,14 +8,14 @@ use IO::Socket; use lib 'lib'; use LDAP::Koha; -my $listen = '10.60.0.13:2389'; +my $listen = shift @ARGV || 'localhost:2389'; my $sock = IO::Socket::INET->new( Listen => 5, Proto => 'tcp', Reuse => 1, LocalAddr => $listen, -) || die; +) || die "can't listen to $listen $!"; warn "# listening on $listen";