Skip to content

Commit e80dc05

Browse files
committed
intra/tunnel: on restart, start a dualstack netstack
This is consistent with how a new intra/tunnel is also created (as dualstack)
1 parent 8c7eba4 commit e80dc05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

intra/tunnel.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,11 @@ func (t *rtunnel) Restart(fd, mtu, engine int) error {
284284

285285
go core.EitherOr(countdown, ontimeout, mktunTimeout)
286286

287+
dualstack := settings.IP46
287288
l3 := settings.L3(engine)
288289
l3diff := dialers.IPProtos(l3)
289290

290-
gt, revhdl, err := tunnel.NewGTunnel(t.ctx, fd, mtu, l3, t.handlers)
291+
gt, revhdl, err := tunnel.NewGTunnel(t.ctx, fd, mtu, dualstack, t.handlers)
291292

292293
old := t.t.Load()
293294
old.Disconnect() // may hve been disconnected already

0 commit comments

Comments
 (0)