fix(devtunnel): use 1280 mtu (#2420)

This should be more compatible with cloud VMs and VPNs.
This commit is contained in:
Colin Adler 2022-06-16 12:12:04 -05:00 committed by GitHub
parent ba451b569a
commit c36b0d892b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)