Don't depend on the ability to correctly resolve localhost

This commit is contained in:
Jeremy Lakeman 2016-10-18 11:44:58 -04:00
parent 75dfcff213
commit fe7a839df5

View File

@ -199,7 +199,7 @@ public class ServalDClient implements ServalDHttpConnectionFactory {
param.uri_encode(str);
sep = '&';
}
URL url = new URL("http://localhost:" + httpPort + path + str.toString());
URL url = new URL("http://127.0.0.1:" + httpPort + path + str.toString());
URLConnection uconn = url.openConnection();
HttpURLConnection conn;
try {