aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freeradiussettings.xml
diff options
context:
space:
mode:
Diffstat (limited to 'packages/freeradiussettings.xml')
-rw-r--r--packages/freeradiussettings.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/freeradiussettings.xml b/packages/freeradiussettings.xml
index ccd39e3a..e8cea6da 100644
--- a/packages/freeradiussettings.xml
+++ b/packages/freeradiussettings.xml
@@ -36,7 +36,8 @@
Function sync_package() {
global $config;
$fout = fopen("/usr/local/etc/raddb/radiusd.conf.dynamic","w");
- $int_ip = find_interface_ip($config['interfaces'][$_POST['interface']]['if']);
+ $int = $config['installedpackages']['freeradiussettings']['config']['0']['interface'];
+ $int_ip = find_interface_ip($int);
$port = $config['installedpackages']['freeradiussettings']['config'][0]['port'];
fwrite($fout, "{\nipaddr = " . $int_ip);
if($port != "") {