Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public void shouldCreatePreferencesWithoutThrownException() {
}

@Test
public void shouldReturnFalseWhenConnectionForceRelayedIsNotSet() {
Assert.assertFalse(preferences.isConnectionForceRelayed());
public void shouldReturnTrueWhenConnectionForceRelayedIsNotSet() {
Assert.assertTrue(preferences.isConnectionForceRelayed());
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion tool/src/main/java/io/netbird/client/tool/Preferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void disableTraceLog() {
}

public boolean isConnectionForceRelayed() {
return sharedPref.getBoolean(keyForceRelayConnection, false);
return sharedPref.getBoolean(keyForceRelayConnection, true);
}

public void enableForcedRelayConnection() {
Expand Down
Loading