From b3f8c9953e10791e67df03315473e027eb91fab2 Mon Sep 17 00:00:00 2001
From: Mark Pashmfouroush <mark@markpash.me>
Date: Mon, 3 Jun 2024 15:13:20 +0100
Subject: [PATCH] warp: disable flaky connectivity test

Signed-off-by: Mark Pashmfouroush <mark@markpash.me>
---
 app/app.go | 40 ++++++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/app/app.go b/app/app.go
index 95280c425..6e935da34 100644
--- a/app/app.go
+++ b/app/app.go
@@ -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)
@@ -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)
@@ -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)
@@ -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 {
@@ -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"))