Skip to content

Commit

Permalink
pan: fix GetPath if the connection is within the same AS (#253)
Browse files Browse the repository at this point in the history
Co-authored-by: Marc Frei <[email protected]>
  • Loading branch information
fbuetler and marcfrei authored Apr 5, 2024
1 parent 2574ae9 commit cb0dc36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/pan/udp_dial.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit cb0dc36

Please sign in to comment.