Skip to content

Commit

Permalink
nilaway: ipn/wgproxy.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed Jan 29, 2025
1 parent f310038 commit c9b4378
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions intra/ipn/wgproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -1057,10 +1057,6 @@ func (h *wgproxy) Hop(p Proxy) (err error) {
}
}()

if h.id == p.ID() {
return errHopSelf
}

if p == nil {
old = h.via.Tango(nil)
// undo MTU enforced due to any prior hops
Expand All @@ -1070,6 +1066,8 @@ func (h *wgproxy) Hop(p Proxy) (err error) {
log.I("wg: %s hop: %s removed; mtu reset err? %v",
h.id, idhandle(old), err)
return nil
} else if h.id == p.ID() {
return errHopSelf
}

if p.Status() == END {
Expand Down

0 comments on commit c9b4378

Please sign in to comment.