Skip to content

Commit 40b592e

Browse files
committed
nilaway: ipn/wg/wgproxy.go
1 parent a9b70ed commit 40b592e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

intra/ipn/wgproxy.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,8 +1284,7 @@ func (h *wgtun) serve(network, local string) (pc net.PacketConn, err error) {
12841284
var v Proxy // may be nil
12851285
hasvia, usingvia := false, false
12861286
if hasvia = usevia(h.viaID); hasvia {
1287-
if v, usingvia = h.via.Get(); usingvia {
1288-
who = idstr(v) // should be == viaID
1287+
if v, usingvia = h.via.Get(); v != nil && usingvia {
12891288
// TODO: use Dial if announce fails to "port-forward" on via
12901289
pc, err = v.Announce(network, local)
12911290
} else {

0 commit comments

Comments
 (0)