mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
fix(devtunnel): use 1280 mtu (#2420)
This should be more compatible with cloud VMs and VPNs.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user