@@ -213,6 +213,8 @@ def __sync_pro_profiles():
213213
214214
215215def __add_profile (port , profile ):
216+ query_logging = e_uci .get ('flashstart' , 'global' , 'logqueries' , default = False , dtype = bool )
217+ rebind_protection = e_uci .get ('flashstart' , 'global' , 'rebind_protection' , default = True , dtype = bool )
216218 if e_uci .get ('dhcp' , profile ['id' ], default = None ) is None :
217219 logging .info (f'New profile found { profile ["name" ]} , creating instance { profile ["id" ]} .' )
218220 e_uci .set ('dhcp' , profile ['id' ], 'dnsmasq' )
@@ -224,6 +226,8 @@ def __add_profile(port, profile):
224226 e_uci .set ('dhcp' , profile ['id' ], 'noresolv' , True )
225227 e_uci .set ('dhcp' , profile ['id' ], 'max_ttl' , 60 )
226228 e_uci .set ('dhcp' , profile ['id' ], 'max_cache_ttl' , 60 )
229+ e_uci .set ('dhcp' , profile ['id' ], 'logqueries' , query_logging )
230+ e_uci .set ('dhcp' , profile ['id' ], 'rebind_protection' , rebind_protection )
227231 # sets always get replaced, checking before replacing
228232 custom_servers = list (e_uci .get ('flashstart' , 'global' , 'custom_servers' , list = True , dtype = str , default = []))
229233 servers = sorted (custom_servers + profile ['servers' ])
0 commit comments