yh-radius
yh-radius copied to clipboard
有考虑支持 mschapv2吗
我使用wifi认证,报错信息如下,chap和pap可以正常验证,但是mschap不可以
ERRO[2023-06-29 18:23:09.425] recovery invoke runtime error: invalid memory address or nil pointer dereference
[xorm] [info] 2023/06/29 18:23:09.425625 [SQL] ROLL BACK
ERRO[2023-06-29 18:23:09.46] occur unknown error: runtime error: invalid memory address or nil pointer dereference
DEBU[2023-06-29 18:23:09.46] 异常堆栈信息:goroutine 123 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x65
go-rad/radius.RecoveryFunc.func1.1()
/Users/akiraka/Downloads/yh-radius-master/radius/common_middleware.go:54 +0x1ad
panic({0x14e5e60, 0x18c19d0})
/usr/local/go/src/runtime/panic.go:884 +0x213
go-rad/radius.pap({0xc00041c448?, 0x1?}, {0xc00041cc50, 0x6}, {0x1, 0x18, 0xc8, {0xa2, 0xce, 0x98, ...}, ...})
/Users/akiraka/Downloads/yh-radius-master/radius/verify_password.go:34 +0x32b
go-rad/radius.UserVerify(0xc0000d0500)
/Users/akiraka/Downloads/yh-radius-master/radius/auth_middleware.go:47 +0x1cb
go-rad/radius.(*Context).Next(...)
/Users/akiraka/Downloads/yh-radius-master/radius/context.go:30
go-rad/radius.NasValidation(0xc0000d0500)
/Users/akiraka/Downloads/yh-radius-master/radius/common_middleware.go:25 +0x2a5
go-rad/radius.(*Context).Next(...)
/Users/akiraka/Downloads/yh-radius-master/radius/context.go:30
go-rad/radius.RecoveryFunc.func1(0xc0000c4dc0?)
/Users/akiraka/Downloads/yh-radius-master/radius/common_middleware.go:60 +0x8f
go-rad/radius.(*Context).Next(...)
/Users/akiraka/Downloads/yh-radius-master/radius/context.go:30
go-rad/radius.(*radEngine).HandlePackage.func1({0xc0001d0000?, 0xc0004c4f90?, 0xc0004c4fd0?}, 0xc000012010, 0xc000147260)
/Users/akiraka/Downloads/yh-radius-master/radius/radius_engine.go:86 +0x282
created by go-rad/radius.(*radEngine).HandlePackage
/Users/akiraka/Downloads/yh-radius-master/radius/radius_engine.go:69 +0x44a
INFO[2023-06-29 18:23:09.46] 响应报文:RadiusPackage:{
Code=2
Identifier=24
Length=41
Authenticator=939c8bd39e575b5415663235eff3ce02
isChap=false
RadiusAttrs: [
Reply-Message=occur unknown error]
}