Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f21b4cde authored by Brad Fitzpatrick's avatar Brad Fitzpatrick
Browse files

resolved conflicts for merge of b3ffd4ad to master

Change-Id: I80b227b678ef168a45494acf879debed5861de39
parents 2b4b3bd4 b3ffd4ad
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -299,15 +299,15 @@ public final class Proxy {
            final URI uri = URI.create(url);
            final String host = uri.getHost();
            if (host != null) {
                if (host.equalsIgnoreCase("localhost")) {
                    return true;
                }
                if (InetAddress.getByName(host).isLoopbackAddress()) {
                // TODO: InetAddress.isLoopbackAddress should be used to check
                // for localhost. However no public factory methods exist which
                // can be used without triggering DNS lookup if host is not localhost.
                if (host.equalsIgnoreCase("localhost") ||
                        host.equals("127.0.0.1") ||
                        host.equals("[::1]")) {
                    return true;
                }
            }
        } catch (UnknownHostException uex) {
            // Ignore (INetworkSystem.ipStringToByteArray)
        } catch (IllegalArgumentException iex) {
            // Ignore (URI.create)
        }