From 397fec4741b40f61d06a467b4110aad7e996485c Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Thu, 1 Sep 2022 14:21:56 +0200 Subject: Default tables are not created unless actually used. This allows for setting default table values at the beginning of config file before "master4" and "master6" tables are initialized. --- nest/proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nest/proto.c') diff --git a/nest/proto.c b/nest/proto.c index 853b1cf9..ef3e3f4d 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -864,7 +864,7 @@ channel_config_new(const struct channel_class *cc, const char *name, uint net_ty if (proto->net_type && (net_type != proto->net_type)) cf_error("Different channel type"); - tab = new_config->def_tables[net_type]; + tab = rt_get_default_table(new_config, net_type); } if (!cc) -- cgit v1.2.3