forked from github/cordova-android
Fix bug where isreachable doesn't return correct results for https
(http secure) url protocol.
This commit is contained in:
parent
8a1ab69235
commit
eb3b1f91d4
@ -275,7 +275,7 @@ public class NetworkManager extends Plugin {
|
||||
public int isReachable(String uri, boolean isIpAddress) {
|
||||
int reachable = NOT_REACHABLE;
|
||||
|
||||
if (uri.indexOf("http://") == -1) {
|
||||
if (uri.indexOf("http://") == -1 && uri.indexOf("https://") == -1) {
|
||||
uri = "http://" + uri;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user