Skip to content

Commit c36b0d8

Browse files
authored
fix(devtunnel): use 1280 mtu (#2420)
This should be more compatible with cloud VMs and VPNs.
1 parent ba451b5 commit c36b0d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/devtunnel/tunnel.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func NewWithConfig(ctx context.Context, logger slog.Logger, cfg Config) (*Tunnel
5959
tun, tnet, err := netstack.CreateNetTUN(
6060
[]netip.Addr{netip.AddrFrom16(cfg.ID)},
6161
[]netip.Addr{netip.AddrFrom4([4]byte{1, 1, 1, 1})},
62-
1420,
62+
1280,
6363
)
6464
if err != nil {
6565
return nil, nil, xerrors.Errorf("create net TUN: %w", err)

0 commit comments

Comments
 (0)