]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
always use new conditions
authorAlan T. DeKok <aland@freeradius.org>
Sun, 27 Aug 2023 14:57:22 +0000 (10:57 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 27 Aug 2023 14:57:22 +0000 (10:57 -0400)
Let's set a simple flag to see if anything breaks.  That way if
something bad does happen, we only have to revert one line of code.

If everything works. we can then start on the longer process of
removing all of the old condition code.

src/lib/server/cf_file.c

index 222dd6e12b86fd4e13f5288b132b5d3000181806..b41056dd815e1eee4b57027098dd47ddba3625f2 100644 (file)
@@ -1516,7 +1516,7 @@ static CONF_ITEM *process_if(cf_stack_t *stack)
        CONF_SECTION    *parent = frame->current;
        char            *buff[4];
        tmpl_rules_t    t_rules;
-       bool            use_new_conditions = main_config_migrate_option_get("use_new_conditions");
+       bool            use_new_conditions = true;
 
        /*
         *      Short names are nicer.