Development

This commit is contained in:
Matthew Grotke 2026-06-03 01:32:13 -04:00
parent 2905f21052
commit f04b2b36cc
5 changed files with 22 additions and 10 deletions

View file

@ -114,7 +114,7 @@
"input_type": "checkbox",
"checkbox_label": "Log auth requests",
"value": "%RADIUS_LOGGING%",
"hint": "Enables auth and auth_accept/auth_reject in radiusd.conf."
"hint": "%RADIUS_LOGGING_HINT%"
},
{
"type": "hr"
@ -149,7 +149,7 @@
"layout": "inline",
"value": "%RADIUS_GEN_LOG_MAX_KB%",
"min": "64",
"hint": "Log display will be truncated to this size."
"hint": "Log will automatically be cleared when it reaches this size."
},
{
"type": "button_row",

View file

@ -66,6 +66,7 @@ def collect_tokens(cfg):
tokens['RADIUS_MAC_FORMAT'] = fr_opts.get('mac_format', 'aabbccddeeff')
tokens['RADIUS_APPLY_TO'] = fr_opts.get('apply_to', 'all')
tokens['RADIUS_LOGGING'] = 'true' if fr_gen.get('logging', False) else ''
tokens['RADIUS_LOGGING_HINT'] = 'Unchecking will clear logs.' if fr_gen.get('logging', False) else ''
tokens['RADIUS_GEN_LOG_MAX_KB'] = str(fr_gen.get('log_max_kb', 1024))
tokens['RADIUS_LOG_TAIL'], tokens['RADIUS_LOG_SUMMARY'] = radius_log_tail(cfg)
return tokens