diff --git a/pkg/pan/udp_dial.go b/pkg/pan/udp_dial.go index 5ef55aad..1065e705 100644 --- a/pkg/pan/udp_dial.go +++ b/pkg/pan/udp_dial.go @@ -98,6 +98,9 @@ func (c *dialedConn) LocalAddr() net.Addr { } func (c *dialedConn) GetPath() *Path { + if c.selector == nil { + return nil + } return c.selector.Path() }