浏览代码

updte download cdn ip getter

billyyoyo 6 年之前
父节点
当前提交
a594321cf0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/main/java/com/sheep/gamegroup/util/SheepDownloadConnection.java

+ 1 - 1
app/src/main/java/com/sheep/gamegroup/util/SheepDownloadConnection.java

@@ -126,7 +126,7 @@ public class SheepDownloadConnection implements DownloadConnection, DownloadConn
         String ip = NetUtil.getUrlIp(connection);
         if ("0.0.0.0".equals(ip)) {
             try {
-                InetSocketAddress address = new InetSocketAddress(url.getHost(), url.getPort());
+                InetSocketAddress address = new InetSocketAddress(url.getHost(), 80);
                 ip = address.getAddress().getHostAddress();
             } catch (Exception e) {
                 e.printStackTrace();