mirror of
https://github.com/oneclickvirt/gostun.git
synced 2025-10-24 23:51:11 +08:00
feat: 修复代码中缺失的退出机制
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user