mirror of https://github.com/coder/coder.git
fix(devtunnel): use 1280 mtu (#2420)
This should be more compatible with cloud VMs and VPNs.
This commit is contained in:
parent
ba451b569a
commit
c36b0d892b
|
@ -59,7 +59,7 @@ func NewWithConfig(ctx context.Context, logger slog.Logger, cfg Config) (*Tunnel
|
|||
tun, tnet, err := netstack.CreateNetTUN(
|
||||
[]netip.Addr{netip.AddrFrom16(cfg.ID)},
|
||||
[]netip.Addr{netip.AddrFrom4([4]byte{1, 1, 1, 1})},
|
||||
1420,
|
||||
1280,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, nil, xerrors.Errorf("create net TUN: %w", err)
|
||||
|
|
Loading…
Reference in New Issue