show client setup just to... well clients within range
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 24 Aug 2009 22:04:39 +0000 (22:04 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 24 Aug 2009 22:04:39 +0000 (22:04 +0000)
lib/PXElator/httpd.pm

index 7fac25e..6ae0211 100644 (file)
@@ -213,7 +213,10 @@ warn "XXX pids = ", dump( $daemons::pids );
                        $ip = $new_ip;
                }
 
-               if ( $ip ne $server::ip ) {
+               my $ip_short = (split(/\./, $ip, 4))[3];
+
+               # if ( $ip ne $server::ip ) -- not flexible enough for tunnel endpoints
+               if ( $ip_short >= $server::ip_from && $ip_short <= $server::ip_to ) {
                        my $hostname = client::conf( $ip, 'hostname' => $param->{hostname} );
 
                        my @table = (