\n";
# Build list of sockets
@sockets = &webmin::get_miniserv_sockets(\%miniserv);
# Show table of all bound IPs and ports
print " | $webmin::text{'bind_sockets'} | \n";
print "\n";
print " | $webmin::text{'bind_sip'} | ",
"$webmin::text{'bind_sport'} | \n";
$i = 0;
foreach $s (@sockets, [ undef, "*" ]) {
print "\n";
print "| \n";
printf " | \n",
$s->[0] eq "*" ? undef : $s->[0];
print "\n";
print "\n";
printf " | \n",
$s->[1] eq "*" ? undef : $s->[1];
print " \n";
$i++;
}
print " | \n";
# Show web server hostname
print " | $webmin::text{'bind_hostname'} | \n";
print "",&ui_radio("hostname_def", $miniserv{"host"} ? 0 : 1,
[ [ 1, $webmin::text{'bind_auto'} ],
[ 0, &ui_textbox("hostname", $miniserv{"host"}, 25) ] ]),
" | \n";
print " |