Development

This commit is contained in:
Matthew Grotke 2026-05-30 16:13:43 -04:00
parent 26a90fe1dc
commit cb4e1933a7
2 changed files with 2 additions and 2 deletions

View file

@ -264,7 +264,7 @@
"label": "RADIUS Default", "label": "RADIUS Default",
"name": "radius_default", "name": "radius_default",
"input_type": "checkbox", "input_type": "checkbox",
"hint": "Clients without a DHCP reservation will be placed into this VLAN (requires layer 3 switch). Note: current default is %RADIUS_DEFAULT_VLAN%." "hint": "Clients without a DHCP reservation will be placed into this VLAN. Note: current default is %RADIUS_DEFAULT_VLAN%."
}, },
{ {
"type": "field", "type": "field",

View file

@ -1821,7 +1821,7 @@ def ensure_radius_secret():
import secrets as _secrets import secrets as _secrets
secret = _secrets.token_urlsafe(32) secret = _secrets.token_urlsafe(32)
RADIUS_SECRET_FILE.write_text(secret + "\n") RADIUS_SECRET_FILE.write_text(secret + "\n")
RADIUS_SECRET_FILE.chmod(0o600) RADIUS_SECRET_FILE.chmod(0o644)
print(f"Generated RADIUS shared secret: {RADIUS_SECRET_FILE}") print(f"Generated RADIUS shared secret: {RADIUS_SECRET_FILE}")
return secret return secret