mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-05 07:50:24 +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 == "" {
|
if eps == "" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if ok {
|
if ok && lnk.endpoint != nil {
|
||||||
notify[p] = [2]string{
|
notify[p] = [2]string{
|
||||||
lnk.endpoint.Network(),
|
lnk.endpoint.Network(),
|
||||||
eps,
|
eps,
|
||||||
|
|||||||
Reference in New Issue
Block a user