if (args[startargs].startsWith("http://")) {
if (Log.on) Log.log(Main.class, "downloading xwar");
URL u = new URL(args[startargs]);
- originAddr = InetAddress.getByName(u.getHost());
- Resources.loadArchive(Platform.urlToInputStream(u));
+ try {
+ originAddr = InetAddress.getByName(u.getHost());
+ } catch (UnknownHostException) {
+ if (Log.on) Log.log("couldn't resolve " + u.getHost() + " -- hopefully there is a proxy that can");
+ }
+ Resources.loadArchive(new HTTP(args[startargs]).getInputStream());
} else {