mirror of
https://github.com/jakobadam/RDSFactor.git
synced 2025-08-01 22:12:14 +02:00
Using IsValid on the RadiusPacket
This commit is contained in:
parent
8bbd742aaa
commit
6afe01e932
2 changed files with 10 additions and 14 deletions
|
@ -30,10 +30,6 @@ Public Class RDSHandler
|
|||
End Sub
|
||||
|
||||
Public Sub ProcessRequest()
|
||||
If ValidPacket() = False Then
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
ExtractAttributes()
|
||||
|
||||
If mIsAppLaunchRequest Then
|
||||
|
@ -231,14 +227,6 @@ Public Class RDSHandler
|
|||
Return email
|
||||
End Function
|
||||
|
||||
Private Function ValidPacket()
|
||||
If mPacket.UserName Is Nothing Then
|
||||
Console.WriteLine("Not a valid radius packet.. No username present.. Drop!")
|
||||
Return False
|
||||
End If
|
||||
Return True
|
||||
End Function
|
||||
|
||||
Private Sub ExtractAttributes()
|
||||
packetUsername = mPacket.UserName.ToLower
|
||||
packetPassword = mPacket.UserPassword
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue