Skip checking NAS-Identifier
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Steve McMaster 2022-10-16 21:31:49 +00:00
parent f305d03668
commit 4fd8f5234f

View File

@ -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: