feat: 修复代码中缺失的退出机制

This commit is contained in:
spiritlhl
2025-07-22 14:32:57 +00:00
parent 3fc8d2d980
commit 3c83b514e3

View File

@@ -414,6 +414,7 @@ func parse(msg *stun.Message) (ret struct {
for _, attr := range msg.Attributes {
switch attr.Type {
case stun.AttrXORMappedAddress, stun.AttrOtherAddress, stun.AttrResponseOrigin, stun.AttrMappedAddress, stun.AttrSoftware:
break //nolint:staticcheck
default:
if model.EnableLoger {
model.Log.Debugf("\t%v (l=%v)", attr, attr.Length)