From c36b0d892bdcf7b5e44e9a9175cfff42e76eea1f Mon Sep 17 00:00:00 2001 From: Colin Adler Date: Thu, 16 Jun 2022 12:12:04 -0500 Subject: [PATCH] fix(devtunnel): use 1280 mtu (#2420) This should be more compatible with cloud VMs and VPNs. --- coderd/devtunnel/tunnel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coderd/devtunnel/tunnel.go b/coderd/devtunnel/tunnel.go index 092cdd52ee..a5b8be7d02 100644 --- a/coderd/devtunnel/tunnel.go +++ b/coderd/devtunnel/tunnel.go @@ -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)