Correct documentation, and allow client lists without the
authoraland <aland>
Thu, 17 Apr 2008 12:22:23 +0000 (12:22 +0000)
committeraland <aland>
Thu, 17 Apr 2008 12:22:23 +0000 (12:22 +0000)
"clients" name.  Closes #546.

raddb/clients.conf
src/main/listen.c

index 30b3e6e..fbd51c4 100644 (file)
@@ -222,7 +222,7 @@ client localhost {
 #  "clients = per_socket_clients".  That IP address/port combination
 #  will then accept ONLY the clients listed in this section.
 #
-#per_socket_clients {
+#clients per_socket_clients {
 #      client 192.168.3.4 {
 #              secret = testing123
 #        }
index fc60993..003752b 100644 (file)
@@ -328,6 +328,9 @@ static int common_socket_parse(CONF_SECTION *cs, rad_listen_t *this)
                                                      "clients",
                                                      section_name);
                if (!client_cs) {
+                       client_cs = cf_section_find(section_name);
+               }
+               if (!client_cs) {
                        cf_log_err(cf_sectiontoitem(cs),
                                   "Failed to find clients %s {...}",
                                   section_name);