mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-04 23:40:26 +08:00
fix(nat): panic on notify nil
This commit is contained in:
@@ -108,7 +108,7 @@ func (l *Link) onQuery(packet []byte) {
|
||||
if eps == "" {
|
||||
continue
|
||||
}
|
||||
if ok {
|
||||
if ok && lnk.endpoint != nil {
|
||||
notify[p] = [2]string{
|
||||
lnk.endpoint.Network(),
|
||||
eps,
|
||||
|
||||
Reference in New Issue
Block a user