From 9524c0efcaa18ac6d21fb50a56955359fb2edb3c Mon Sep 17 00:00:00 2001 From: Diego Romar <18450339+doromaraujo@users.noreply.github.com> Date: Tue, 25 Nov 2025 12:43:48 -0300 Subject: [PATCH] Use force relay connection by default --- .../io/netbird/client/tool/PreferencesInstrumentedTest.java | 4 ++-- tool/src/main/java/io/netbird/client/tool/Preferences.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tool/src/androidTest/java/io/netbird/client/tool/PreferencesInstrumentedTest.java b/tool/src/androidTest/java/io/netbird/client/tool/PreferencesInstrumentedTest.java index cf7a7f2..3ebe1cf 100644 --- a/tool/src/androidTest/java/io/netbird/client/tool/PreferencesInstrumentedTest.java +++ b/tool/src/androidTest/java/io/netbird/client/tool/PreferencesInstrumentedTest.java @@ -45,8 +45,8 @@ public void shouldCreatePreferencesWithoutThrownException() { } @Test - public void shouldReturnFalseWhenConnectionForceRelayedIsNotSet() { - Assert.assertFalse(preferences.isConnectionForceRelayed()); + public void shouldReturnTrueWhenConnectionForceRelayedIsNotSet() { + Assert.assertTrue(preferences.isConnectionForceRelayed()); } @Test diff --git a/tool/src/main/java/io/netbird/client/tool/Preferences.java b/tool/src/main/java/io/netbird/client/tool/Preferences.java index c580749..39ac37d 100644 --- a/tool/src/main/java/io/netbird/client/tool/Preferences.java +++ b/tool/src/main/java/io/netbird/client/tool/Preferences.java @@ -34,7 +34,7 @@ public void disableTraceLog() { } public boolean isConnectionForceRelayed() { - return sharedPref.getBoolean(keyForceRelayConnection, false); + return sharedPref.getBoolean(keyForceRelayConnection, true); } public void enableForcedRelayConnection() {