uspot: auto delete radius files from /tmp

Fixes: WIFI-13547
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2024-04-05 16:42:55 +02:00
parent dff6a6e3d8
commit c22767540e
2 changed files with 2 additions and 4 deletions

View File

@@ -221,8 +221,7 @@ return {
let reply = this.fs_popen('/usr/bin/radius-client ' + path);
if (!+config.def_captive.debug)
fs.unlink(path);
fs.unlink(path);
return reply;
},

View File

@@ -76,8 +76,7 @@ function radius_call(interface, mac, payload) {
system('/usr/bin/radius-client ' + path);
if (!+interfaces[interface].settings.debug)
fs.unlink(path);
fs.unlink(path);
}
// RADIUS Acct-Status-Type attributes