Skip to content

Commit

Permalink
warp: disable flaky connectivity test
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Pashmfouroush <[email protected]>
  • Loading branch information
markpash committed Jun 3, 2024
1 parent 115bbf4 commit b3f8c99
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ func runWireguard(ctx context.Context, l *slog.Logger, opts WarpOptions) error {
return err
}

// Test wireguard connectivity
if err := usermodeTunTest(ctx, l, tnet); err != nil {
return err
}
// // Test wireguard connectivity
// if err := usermodeTunTest(ctx, l, tnet); err != nil {
// return err
// }

// Run a proxy on the userspace stack
_, err = wiresocks.StartProxy(ctx, l, tnet, opts.Bind)
Expand Down Expand Up @@ -233,10 +233,10 @@ func runWarp(ctx context.Context, l *slog.Logger, opts WarpOptions, endpoint str
return err
}

// Test wireguard connectivity
if err := usermodeTunTest(ctx, l, tnet); err != nil {
return err
}
// // Test wireguard connectivity
// if err := usermodeTunTest(ctx, l, tnet); err != nil {
// return err
// }

// Run a proxy on the userspace stack
_, err = wiresocks.StartProxy(ctx, l, tnet, opts.Bind)
Expand Down Expand Up @@ -291,10 +291,10 @@ func runWarpInWarp(ctx context.Context, l *slog.Logger, opts WarpOptions, endpoi
return err
}

// Test wireguard connectivity
if err := usermodeTunTest(ctx, l, tnet); err != nil {
return err
}
// // Test wireguard connectivity
// if err := usermodeTunTest(ctx, l, tnet); err != nil {
// return err
// }

// Create a UDP port forward between localhost and the remote endpoint
addr, err := wiresocks.NewVtunUDPForwarder(ctx, netip.MustParseAddrPort("127.0.0.1:0"), endpoints[0], tnet, singleMTU)
Expand Down Expand Up @@ -359,10 +359,10 @@ func runWarpInWarp(ctx context.Context, l *slog.Logger, opts WarpOptions, endpoi
return err
}

// Test wireguard connectivity
if err := usermodeTunTest(ctx, l, tnet); err != nil {
return err
}
// // Test wireguard connectivity
// if err := usermodeTunTest(ctx, l, tnet); err != nil {
// return err
// }

_, err = wiresocks.StartProxy(ctx, l, tnet, opts.Bind)
if err != nil {
Expand Down Expand Up @@ -416,10 +416,10 @@ func runWarpWithPsiphon(ctx context.Context, l *slog.Logger, opts WarpOptions, e
return err
}

// Test wireguard connectivity
if err := usermodeTunTest(ctx, l, tnet); err != nil {
return err
}
// // Test wireguard connectivity
// if err := usermodeTunTest(ctx, l, tnet); err != nil {
// return err
// }

// Run a proxy on the userspace stack
warpBind, err := wiresocks.StartProxy(ctx, l, tnet, netip.MustParseAddrPort("127.0.0.1:0"))
Expand Down

0 comments on commit b3f8c99

Please sign in to comment.