125 |
warn "static $found" if $debug; |
warn "static $found" if $debug; |
126 |
} elsif ( $path eq '/' ) { |
} elsif ( $path eq '/' ) { |
127 |
|
|
128 |
my @rows = ( |
my @rows; |
|
'debug', qq|<a href=/our/debug/| . boolean::toggle($debug) . qq|>$debug</a>|, |
|
|
); |
|
129 |
|
|
130 |
my $debug_proc = ''; |
my $debug_proc = ''; |
131 |
|
|
198 |
|
|
199 |
} elsif ( $path =~ m{^/server} ) { |
} elsif ( $path =~ m{^/server} ) { |
200 |
print $client ok |
print $client ok |
201 |
, html::table( 2, map { ( $_, html::tt eval '$server::'.$_ ) } ( 'ip', 'netmask', 'ip_from', 'ip_to', 'domain_name', 'base_dir', 'conf' ) ) |
, html::table( 2, |
202 |
|
'debug' => qq|<a href=/our/debug/| . boolean::toggle($debug) . qq|>$debug</a>|, |
203 |
|
map { |
204 |
|
( $_, html::tt eval '$server::'.$_ ) |
205 |
|
} ( 'ip', 'netmask', 'ip_from', 'ip_to', 'domain_name', 'base_dir', 'conf' ) |
206 |
|
) |
207 |
; |
; |
208 |
} elsif ( $path =~ m!^/client(?:/$RE{net}{IPv4}{-keep})?! ) { |
} elsif ( $path =~ m!^/client(?:/$RE{net}{IPv4}{-keep})?! ) { |
209 |
my $ip = $1 || $client->peerhost; |
my $ip = $1 || $client->peerhost; |