This will eventually let home servers be defined for each
virtual server. Right now, it doesn't yet work.
const char *hostname;
const char *server; /* for internal proxying */
+ const char *parent_server;
fr_ipaddr_t ipaddr;
if ((home->lifetime > 0) && (home->idle_timeout > home->lifetime))
home->idle_timeout = 0;
+ tls = cf_item_parent(cf_sectiontoitem(cs));
+ if (strcmp(cf_section_name1(tls), "server") == 0) {
+ home->parent_server = cf_section_name2(tls);
+ }
+
if (dual) {
home_server *home2 = rad_malloc(sizeof(*home2));
home2->port++;
home2->ping_user_password = NULL;
home2->cs = cs;
+ home2->parent_server = home->parent_server;
if (home->no_response_fail == 2) home->no_response_fail = 0;
if (home2->no_response_fail == 2) home2->no_response_fail = 1;