mirror of
https://github.com/oneclickvirt/gostun.git
synced 2025-10-27 01:00:29 +08:00
feat: 修复代码中缺失的退出机制
This commit is contained in:
@@ -414,6 +414,7 @@ func parse(msg *stun.Message) (ret struct {
|
|||||||
for _, attr := range msg.Attributes {
|
for _, attr := range msg.Attributes {
|
||||||
switch attr.Type {
|
switch attr.Type {
|
||||||
case stun.AttrXORMappedAddress, stun.AttrOtherAddress, stun.AttrResponseOrigin, stun.AttrMappedAddress, stun.AttrSoftware:
|
case stun.AttrXORMappedAddress, stun.AttrOtherAddress, stun.AttrResponseOrigin, stun.AttrMappedAddress, stun.AttrSoftware:
|
||||||
|
break //nolint:staticcheck
|
||||||
default:
|
default:
|
||||||
if model.EnableLoger {
|
if model.EnableLoger {
|
||||||
model.Log.Debugf("\t%v (l=%v)", attr, attr.Length)
|
model.Log.Debugf("\t%v (l=%v)", attr, attr.Length)
|
||||||
|
|||||||
Reference in New Issue
Block a user