1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-07 08:50:25 +08:00

fix(nat): panic on notify nil

This commit is contained in:
源文雨
2025-02-20 17:57:19 +09:00
parent f0776751dd
commit 78a744c5b0

View File

@@ -97,6 +97,9 @@ func (l *Link) onQuery(packet []byte) {
lnk, ok := l.me.IsInPeer(p)
eps := ""
if l.me.ep.Network() == "udp" { // udp has real p2p
if lnk.endpoint == nil {
continue
}
eps = lnk.endpoint.String()
}
if eps == "" {