billyyoyo лет назад: 6
Родитель
Сommit
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);
         String ip = NetUtil.getUrlIp(connection);
         if ("0.0.0.0".equals(ip)) {
         if ("0.0.0.0".equals(ip)) {
             try {
             try {
-                InetSocketAddress address = new InetSocketAddress(url.getHost(), url.getPort());
+                InetSocketAddress address = new InetSocketAddress(url.getHost(), 80);
                 ip = address.getAddress().getHostAddress();
                 ip = address.getAddress().getHostAddress();
             } catch (Exception e) {
             } catch (Exception e) {
                 e.printStackTrace();
                 e.printStackTrace();