all values which begin with configuraiton name
will be editable
if ( $ip && $ip ne $server::ip ) {
- my @editable = ( qw/hostname config homepage/ );
-
- client::conf( $ip, $_ => $param->{$_} ) foreach @editable;
-
my $conf = client::all_conf( $ip );
my $config = delete $conf->{config};
+ my @editable = ( qw/hostname config homepage/, grep { m{^\Q$config\E} } keys %$conf );
+ client::conf( $ip, $_ => $param->{$_} ) foreach @editable;
+
my $nmap = qq|<a href=/nmap?scan=$ip>nmap</a>|;
my @table = (
'ping' => ping::host($ip)