Small improvement

This commit is contained in:
M66B 2020-04-19 17:31:50 +02:00
parent 25aa780cd0
commit 681953b97d
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import java.util.Objects;
public class ConnectionHelper {
@ -311,7 +312,7 @@ public class ConnectionHelper {
static Boolean isSyntacticallyInvalid(Throwable ex) {
if (ex.getMessage() == null)
return false;
return ex.getMessage().toLowerCase().contains("syntactically invalid");
return ex.getMessage().toLowerCase(Locale.ROOT).contains("syntactically invalid");
}
static boolean vpnActive(Context context) {