vvbbnn00 / WARP-Clash-API

该项目可以让你通过订阅的方式使用Cloudflare WARP+,自动获取流量。This project enables you to use Cloudflare WARP+ through subscription, automatically acquiring traffic.
GNU General Public License v3.0
8.18k stars 1.12k forks source link

[Bug] ip优选功能似乎不正常 #162

Closed gaofashao closed 2 months ago

gaofashao commented 3 months ago

Bug描述

1、软件版本:dockerhub 3月26日最新版本,使用命令前已更新镜像到最新 2、在容器内执行/app目录下执行python3 app.py optimize时,命令报错中断。检查/app/config下的result.csv文件的更新时间发现也是没更新。详细日志请查看截图。 3、容器无ipv6环境,可能是筛选ipv6节点时出错导致无法继续

截屏

Screenshot_2024-03-26-01-32-39-95_40deb401b9ffe8e1df2f1cc5ba480b12

环境信息

vvbbnn00 commented 3 months ago

你好, IPv4优选和IPv6是独立的,理论上相互不影响。 根据您提供的信息,似乎无法复现相关问题:

image

image

image

mhqschen commented 2 months ago

我在容器内部执行python3 app.py optimize后,也遇到了报错,看这样子没有测速。但是result.csv文件是有更新的。

745dc8430e38:/app# python3 app.py optimize
Getting IPv4 entrypoints
./scripts/get_entrypoints.sh: line 22: ulimit: open files: cannot modify limit: Operation not permitted
CloudflareWarpSpeedTest

1000 / 1000 [----------------------------------------------------------------------------------------------------------------------------------------] Available: 447  

IP:Port                                     Loss     Latency   
162.159.192.91:939                           0%      251.41    
188.114.97.241:8319                          0%      268.82    
188.114.99.20:1701                           0%      275.12    
188.114.98.232:945                           0%      276.43    
188.114.96.231:2408                          0%      285.81    
188.114.98.237:955                           0%      294.69    

Complete speed test results have been written to the result.csv file.
Getting IPv6 entrypoints
./scripts/get_entrypoints.sh: line 22: ulimit: open files: cannot modify limit: Operation not permitted
CloudflareWarpSpeedTest

1000 / 1000 [------------------------------------------------------------------------------------------------------------------------------------------] Available: 0  

[Info] The total number of IP addresses in the complete speed test results is 0, so skipping the output.
mv: can't rename 'result.csv': No such file or directory

dokcer compose文件:

version: "3.8"
services:
  warp-clash:
    container_name: warp-clash
    image: vvbbnn00/warp-clash-api
    ports:
      - "21001:3000"
    environment:
      - PUID=0
      - PGID=0
      - TZ=Asia/Shanghai
      - SECRET_KEY=xxx
      - SHARE_SUBSCRIPTION=True
      - PUBLIC_URL=xxx
      - DO_GET_WARP_DATA=False
    volumes:
      - /share/Container/volumes/warp-clash/config:/app/config
      - /share/Container/volumes/warp-clash/account:/app/account
      - /share/Container/volumes/warp-clash/logs:/app/logs
    restart: always