Skip checking NAS-Identifier
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f305d03668
commit
4fd8f5234f
@ -66,10 +66,7 @@ class VlanAssign(ServerAsync):
|
||||
mac_address = pkt["User-Name"][0]
|
||||
|
||||
vlan = None
|
||||
if mac_address != pkt["NAS-Identifier"][0]:
|
||||
reply = self.CreateReplyPacket(pkt)
|
||||
reply.code = AccessReject
|
||||
elif mac_address not in self.usermap:
|
||||
if mac_address not in self.usermap:
|
||||
reply = self.CreateReplyPacket(pkt)
|
||||
reply.code = AccessAccept
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user