fix ipv6 crash in Msg.pm
[spider.git] / perl / Msg.pm
index d09527abc8938b98d1666e660c49b585620e9fed..6cad5010c1e4be38e24fbfaec052292041ab8fda 100644 (file)
@@ -331,7 +331,7 @@ sub disconnect
 
        if (defined($sock)) {
                set_event_handler ($sock, read => undef, write => undef, error => undef);
-               shutdown($sock, 3);
+               shutdown($sock, 2);
                close($sock);
        }
        
@@ -460,8 +460,8 @@ sub new_server {
        my $self = $pkg->new($login_proc);
        
     $self->{sock} = $io_socket->new (
-                                          LocalAddr => "$my_host:$my_port",
-#                                          LocalPort => $my_port,
+                                          LocalAddr => $my_host,
+                                          LocalPort => $my_port,
                                           Listen    => SOMAXCONN,
                                           Proto     => 'tcp',
                                           Reuse => 1);