diff options
Diffstat (limited to 'src/Cedar/Protocol.c')
-rw-r--r-- | src/Cedar/Protocol.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Cedar/Protocol.c b/src/Cedar/Protocol.c index e0736060..f11d5957 100644 --- a/src/Cedar/Protocol.c +++ b/src/Cedar/Protocol.c @@ -1655,6 +1655,10 @@ bool ServerAccept(CONNECTION *c) {
radius_login_opt.In_CheckVLanId = hub->Option->AssignVLanIdByRadiusAttribute;
radius_login_opt.In_DenyNoVlanId = hub->Option->DenyAllRadiusLoginWithNoVlanAssign;
+ if (hub->Option->UseHubNameAsRadiusNasId == true)
+ {
+ StrCpy(radius_login_opt.NasId, sizeof(radius_login_opt.NasId), hubname);
+ }
}
// Get the various flags
|