mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-07 00:04:57 +03:00
Add configuration option and code to implement using the Hub name as the Radius realm
This commit is contained in:
@ -4926,6 +4926,7 @@ void SiWriteHubCfg(FOLDER *f, HUB *h)
|
||||
CfgAddInt(f, "RadiusServerPort", h->RadiusServerPort);
|
||||
CfgAddInt(f, "RadiusRetryInterval", h->RadiusRetryInterval);
|
||||
CfgAddStr(f, "RadiusSuffixFilter", h->RadiusSuffixFilter);
|
||||
CfgAddBool(f, "RadiusIncludeRealm", h->RadiusIncludeRealm);
|
||||
}
|
||||
Unlock(h->RadiusOptionLock);
|
||||
|
||||
@ -5091,6 +5092,7 @@ void SiLoadHubCfg(SERVER *s, FOLDER *f, char *name)
|
||||
interval = CfgGetInt(f, "RadiusRetryInterval");
|
||||
|
||||
CfgGetStr(f, "RadiusSuffixFilter", h->RadiusSuffixFilter, sizeof(h->RadiusSuffixFilter));
|
||||
h->RadiusIncludeRealm = CfgGetBool(f, "RadiusIncludeRealm");
|
||||
|
||||
if (interval == 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user