Project

General

Profile

« Previous | Next » 

Revision c3583058

Added by Ermal LUÇI over 14 years ago

Add radius port and radius accounting port to config if supplied.

View differences:

etc/inc/vpn.inc
1303 1303
			}
1304 1304

  
1305 1305
			if (isset ($pppoecfg['radius']['server']['enable'])) {
1306
				$radiusport = "";
1307
				$radiusacctport = "";
1308
				if (isset($pppoecfg['radius']['server']['port']))
1309
					$radiusport = $pppoecfg['radius']['server']['port'];
1310
				if (isset($pppoecfg['radius']['server']['acctport']))
1311
					$radiusacctport = $pppoecfg['radius']['server']['acctport'];
1306 1312
				$mpdconf .=<<<EOD
1307
	set radius server {$pppoecfg['radius']['server']['ip']} "{$pppoecfg['radius']['server']['secret']}"
1313
	set radius server {$pppoecfg['radius']['server']['ip']} "{$pppoecfg['radius']['server']['secret']} {$radiusport} {$radiusacctport}" 
1308 1314
	set radius retries 3
1309 1315
	set radius timeout 10
1310 1316
	set auth enable radius-auth

Also available in: Unified diff