24 |
<div style="font-size: 80%; color: #888"> |
<div style="font-size: 80%; color: #888"> |
25 |
<a href=/>home</a> |
<a href=/>home</a> |
26 |
<a href=/server>server</a> |
<a href=/server>server</a> |
27 |
|
<a href=/ip>ip</a> |
28 |
<a href=/client>client</a> |
<a href=/client>client</a> |
29 |
</div> |
</div> |
30 |
|
|
50 |
use kvm; |
use kvm; |
51 |
use browser; |
use browser; |
52 |
use network; |
use network; |
53 |
|
use ip; |
54 |
|
|
55 |
use CouchDB; |
use CouchDB; |
56 |
|
|
268 |
) |
) |
269 |
; |
; |
270 |
} |
} |
271 |
|
} elsif ( $path =~ m{^/ip/?(\w+)?} ) { |
272 |
|
print $client ok |
273 |
|
, join("\n", map { qq|<a href=/ip/$_>$_</a>| } ( qw/link addr route neigh ntable tunnel maddr mroute xfrm/ )) |
274 |
|
, ip::html( $1 ) |
275 |
|
; |
276 |
} elsif ( $path =~ m{^/our/(\w+)/(\S+)} ) { |
} elsif ( $path =~ m{^/our/(\w+)/(\S+)} ) { |
277 |
eval 'our $' . $1 . ' = ' . $2; |
eval 'our $' . $1 . ' = ' . $2; |
278 |
warn $@ if $@; |
warn $@ if $@; |