--- lib/PXElator/httpd.pm 2009/08/19 11:02:15 262 +++ lib/PXElator/httpd.pm 2009/08/24 22:04:39 284 @@ -213,7 +213,10 @@ $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 = (