Commit Graph

82 Commits

Author SHA1 Message Date
Arvin 9103b0d8c2 Merge pull request #254 from put-go/master
Text Encoding / utf8 (push) Successful in 22s
feat(install): resolve GEO assets via GitHub mirror proxy
2026-05-08 10:35:41 +08:00
put-go 7018217281 feat(install): resolve GEO assets via GitHub mirror proxy
mihomo 默认从 raw.githubusercontent.com 下载 GEO 数据库
(https://github.com/MetaCubeX/mihomo/blob/Meta/config/config.go#L570-L575),
在大部分国内网络环境下无法获取,导致启动失败。

复现方式:

  cat >/tmp/geosite-test.yaml <<'YAML'
  mixed-port: 7890
  allow-lan: false
  mode: rule
  log-level: debug
  proxies: []
  proxy-groups: []
  rules:
    - GEOSITE,cn,DIRECT
  YAML

  /root/clash/runtime/bin/mihomo -t -f /tmp/geosite-test.yaml -d /root/clash/runtime

报错:

  INFO Start initial configuration in progress
  INFO Geodata Loader mode: memconservative
  INFO Geosite Matcher implementation: succinct
  INFO Can't find GeoSite.dat, start download
  ERRO can't initial GeoSite: can't download GeoSite.dat:
       Get "https://release-assets.githubusercontent.com/...": context deadline exceeded
  ERRO rules[0] [GEOSITE,cn,DIRECT] error: can't download GeoSite.dat: context deadline exceeded
  configuration file /tmp/geosite-test.yaml test failed

新增 resolve_geo_assets 在安装阶段通过 GitHub 镜像池预下载全部 GEO 资产
到 RUNTIME_DIR,避免 mihomo 启动时因网络不通而失败。

资产列表对齐 mihomo GeoXUrl 默认值:
  Country.mmdb / geoip.metadb / GeoLite2-ASN.mmdb / GeoIP.dat / GeoSite.dat

- 复用 copy_bundled_asset 优先从 resources/geo/ 复制
- 本地不存在时通过 download_file 走 default_github_mirror_pool 镜像加速
- copy_bundled_asset 增加 $RESOURCE_DIR/$category/$file 搜索路径
2026-05-07 17:51:22 +08:00
Arvin f230876fd5 Merge pull request #251 from put-go/master
Text Encoding / utf8 (push) Successful in 1m6s
Update subconverter release source
2026-05-07 12:52:52 +08:00
yangtaowillv ea04c4da23 feat: add ALLOW-LAN; command: clashctl lan status/on/off 2026-05-07 11:06:48 +08:00
put-go e4fd9a60aa Update subconverter release source 2026-05-06 12:09:58 +08:00
Arvin bfab0b2939 Merge pull request #243 from Babylonehy/fix/proxy-sh-bugfixes
Text Encoding / utf8 (push) Successful in 31s
fix(proxy): harden strategy group selection
2026-04-30 09:03:45 +08:00
Xiang Li 25bdb43a80 fix(proxy): harden strategy group selection 2026-04-29 22:53:43 +08:00
wnlen 30f78ebb17 fix: block unsafe sudo auto install and prevent doctor from rewriting env 2026-04-29 17:58:53 +08:00
wnlen fae7a75f7d optimize: show fixed progress bar for subscription download 2026-04-29 17:33:26 +08:00
wnlen 8be724ce33 optimize: fast enable proxy when runtime is already running 2026-04-29 17:06:59 +08:00
wnlen f1589ee322 optimize: add fast path for already-enabled clashon 2026-04-29 16:49:09 +08:00
wnlen 9ee524f873 fix: report unsupported Tun state for systemd-user backend 2026-04-29 13:18:11 +08:00
wnlen 3d6a523d90 feat: add single-line progress for subscription add flow 2026-04-29 12:02:07 +08:00
wnlen c7e6421b66 fix: Adjust the command prompt 2026-04-29 11:42:40 +08:00
wnlen 8938aaf06e fix: block WSL installs under Windows mount paths 2026-04-29 11:04:57 +08:00
Arvin 659ac556be fix(ui): restore utf-8 encoding and remove mojibake in select output 2026-04-25 20:11:07 +08:00
Arvin 631cf35354 feat(completion): add bash and zsh completions 2026-04-24 22:23:47 +08:00
Arvin 24eeddc4ac Update clashctl.sh 2026-04-24 21:53:43 +08:00
Arvin 52ee31ab24 fix(select): make node selection ignore descriptive entries 2026-04-24 17:20:15 +08:00
Arvin 2202bbf7c5 fix(select): block manual node picking for auto strategy groups 2026-04-24 01:13:07 +08:00
Arvin 45a2628807 fix(tun): rollback tun state on config sync failure and stage runtime config apply #223 2026-04-23 23:54:32 +08:00
Arvin 73d2bc0993 migrate mixin to runtime path with legacy compatibility 2026-04-22 15:57:37 +08:00
Arvin 48f0c985f9 fix(select): derive manual-pick groups from controller structure 2026-04-22 15:22:53 +08:00
wnlen 80f11383ac fix: install clashon wrappers and clarify post-install shell behavior 2026-04-20 17:04:11 +08:00
wnlen b89e75fa6f fix: support unicode node names in clashctl select #23 2026-04-20 16:04:05 +08:00
Arvin 3a8d83f3a3 Update clashctl.sh 2026-04-15 00:40:40 +08:00
Arvin ec3e8741a5 Update common.sh 2026-04-15 00:36:19 +08:00
Arvin da0250bab0 feat: add proxy environment hint before update and upgrade 2026-04-15 00:34:02 +08:00
Arvin dad8337637 refactor: manage controller secret via env instead of mixin 2026-04-15 00:12:02 +08:00
Arvin fa13774880 refactor: manage controller secret via env instead of mixin 2026-04-14 23:54:52 +08:00
Arvin a9e58429ef fix: persist install subscription only after successful config generation 2026-04-14 23:18:25 +08:00
Arvin fb3820f733 fix: improve subconverter compatibility with UA and raw-subscription fallback #203 2026-04-14 23:03:13 +08:00
Arvin b0a920cabb Revert "fix: prevent subconverter response handling from hanging #203"
This reverts commit 2e0c10695c.
2026-04-14 21:47:40 +08:00
Arvin 2e0c10695c fix: prevent subconverter response handling from hanging#203 2026-04-14 21:38:50 +08:00
Arvin c752f71b5a fix: apply mixin prepend and append arrays to runtime config 2026-04-14 21:23:28 +08:00
Arvin fc2fc000b8 fix: preserve subconverter runtime assets required by templates 2026-04-14 20:44:49 +08:00
Arvin 8ed03f125a feat: support local subscription import and unblock add on broken active source 2026-04-14 17:04:28 +08:00
Arvin 30187ca50f Update config.sh 2026-04-14 15:47:28 +08:00
Arvin 6f1a59109e Update clashctl.sh 2026-04-14 15:15:19 +08:00
Arvin 8f4003b900 fix(select): align selectable node list with submit validation 2026-04-14 13:55:57 +08:00
Arvin e896097bd5 fix(config): unify subscription download with download_file progress 2026-04-14 12:12:33 +08:00
Arvin ee5fc58ac5 refactor(config): use download_file for HTTP(S) subscription downloads 2026-04-14 11:59:29 +08:00
Arvin af31dc1104 refactor: use download_file for subscription fetch 2026-04-14 11:57:37 +08:00
Arvin 6d23108532 docs: 收口 boot 三层语义并补齐代理保持前置校验 2026-04-14 11:46:12 +08:00
Arvin f28bf1b7ec Improve install messaging for mixed-port bind denied 2026-04-14 11:36:09 +08:00
Arvin dacb0abe6e feat(diagnose): provide contextual suggestions for mixed-port bind failures 2026-04-14 00:42:28 +08:00
Arvin a9b9c3e0de fix(diagnose): detect mixed-port bind denied and port-in-use from runtime logs 2026-04-14 00:25:38 +08:00
Arvin 7ca7a8cf50 fix: degrade clashon when system proxy is not writable 2026-04-13 23:50:25 +08:00
Arvin 2eecb201b2 docs: document local file subscriptions and restore progress bar 2026-04-13 23:41:24 +08:00
Arvin c2bfdbc3e9 feat: prefer bundled assets for mihomo runtime deps 2026-04-13 23:18:57 +08:00