Make editable service field the default
authorJamie Cameron <jcameron@webmin.com>
Mon, 22 Mar 2010 05:15:21 +0000 (22:15 -0700)
committerJamie Cameron <jcameron@webmin.com>
Mon, 22 Mar 2010 05:15:21 +0000 (22:15 -0700)
tcpwrappers/CHANGELOG
tcpwrappers/config
tcpwrappers/config.info
tcpwrappers/edit_rule.cgi

index 79a90c8..95349ff 100644 (file)
@@ -1,2 +1,4 @@
 ---- Changes since 1.420 ----
 First version of this module, for configuring IP access control for a range of servers.
+---- Changes since 1.510 ----
+Added a Module Config option to control if possible services are taken from inetd/xinetd, or always manually entered.
index 3e51a1e..161d92a 100644 (file)
@@ -1,2 +1,3 @@
 hosts_allow=/etc/hosts.allow
 hosts_deny=/etc/hosts.deny
+inetd_services=0
index 405f79b..095d3f8 100644 (file)
@@ -1,2 +1,3 @@
 hosts_allow=TCP wrappers allow file,0
 hosts_deny=TCP wrappers deny file,0
+inetd_services=Fetch possible services from inetd?,1,1-Yes,0-No
index 805b379..24b3c29 100755 (executable)
@@ -54,7 +54,7 @@ print &ui_hidden($in{'allow'} ? 'allow' : 'deny', 1),"\n";
 print &ui_table_start($text{'edit_header'}, "", 2);
 
 # Services
-if (@xservices) {
+if (@xservices && $config{'inetd_services'}) {
        # listed from (x)inetd
        print &ui_table_row($text{'edit_service'},
                &ui_select("service", \@services, \@xservices, 5, 1));