projects
/
pxelator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dd73bd
)
show client setup just to... well clients within range
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 24 Aug 2009 22:04:39 +0000
(22:04 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 24 Aug 2009 22:04:39 +0000
(22:04 +0000)
lib/PXElator/httpd.pm
patch
|
blob
|
history
diff --git
a/lib/PXElator/httpd.pm
b/lib/PXElator/httpd.pm
index
7fac25e
..
6ae0211
100644
(file)
--- a/
lib/PXElator/httpd.pm
+++ b/
lib/PXElator/httpd.pm
@@
-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 = (