oneclickvirt/ecs

Bug: DNS解锁的判断是不是有问题

RedwindA opened this issue · 5 comments

逻辑目前是去判断子域名绑定的IP和DNS解析

https://github.com/oneclickvirt/UnlockTests/blob/a95bf4e088944083012d11cd6babf5bbed1a488c/utils/utils.go#L264

逻辑上有问题,明天我尝试修复一下

如果你有更好的判断逻辑欢迎告诉我

优化了检测的方式,加入多次判断的比例检测

https://github.com/oneclickvirt/UnlockTests/blob/main/utils/dns.go

eca2680

正确性应该增加了,大概15分钟后编译出 v0.0.66 版本应该就没问题了

你的CDN好像把我拦住了。。。

CDN available, using CDN
--2024-08-07 23:33:12--  http://cdn2.spiritlhl.net/https://github.com/oneclickvirt/ecs/releases/download/v0.0.66/goecs_linux_amd64.zip
Resolving cdn2.spiritlhl.net (cdn2.spiritlhl.net)... 210.79.134.241
Connecting to cdn2.spiritlhl.net (cdn2.spiritlhl.net)|210.79.134.241|:80... connected.
HTTP request sent, awaiting response... 403 FORBIDDEN
2024-08-07 23:33:12 ERROR 403: FORBIDDEN.

wget failed, trying curl...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    24  100    24    0     0     50      0 --:--:-- --:--:-- --:--:--    50
Archive:  goecs.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of goecs.zip or
        goecs.zip.zip, and cannot find goecs.zip.ZIP, period.
chmod: cannot access 'goecs': No such file or directory
cp: cannot stat 'goecs': No such file or directory
sudo: unable to resolve host facon: Name or service not known
sudo: unable to resolve host facon: Name or service not known
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
net.ipv4.ping_group_range = 0 2147483647
Failed to set capabilities on file 'goecs': No such file or directory
Failed to set capabilities on file '/usr/bin/goecs': No such file or directory
goecs version:
./goecs.sh: line 174: goecs: command not found
./goecs.sh: line 174: ./goecs: No such file or directory

现在判断正常了
image

cdn2.spiritlhl.net

我的问题,CDN忘了加到白名单里面了,晚点我修复一下