Commit Graph

1329 Commits

Author SHA1 Message Date
juewuy
021960fbe7 ~增加梅林固件启动时优化系统默认内存检测机制 2026-07-14 08:41:16 +08:00
juewuy
bda31de05d ~修复在线更新订阅定时任务失效的bug 2026-07-13 17:00:50 +08:00
juewuy
2ef92f42ed ~将fakeip地址从28.0.0.0/8调整为198.18.0.0/15 2026-07-13 15:48:34 +08:00
juewuy
7603a480cd ~修复自定义DNS劫持端口界面的错误提示文本 2026-07-13 15:41:43 +08:00
juewuy
9401a48c02 ~修复安装目录末尾会包含/的bug 2026-07-13 15:30:48 +08:00
juewuy
47e50ee608 ~修复部分华硕设备提示找不到crontab的bug 2026-07-13 15:30:21 +08:00
juewuy
5cf7aba112 ~修复容器劫持开关失效的bug 2026-07-13 15:23:13 +08:00
juewuy
b2d8ad9774 ~适配1.14+版本singbox内核 2026-07-13 15:10:50 +08:00
juewuy
a3f2aa9b96 Merge pull request #1284 from wray-lee/patch-1
修复某些情况下引入的default字段污染变量
2026-07-13 14:24:01 +08:00
juewuy
c100d0312d Merge pull request #1271 from fyzhu/patch-1
fix sed error
2026-07-13 14:22:57 +08:00
juewuy
baaad12501 Merge pull request #1293 from kannakamuiuwu/dev
fix: 修复iptables放行端口添加过多导致溢出的错误
2026-07-13 14:12:27 +08:00
Feng Yu
c4532c979f fix(ecs): 公网IP轮询加IPv4校验,新增oray源,避免错误页伪成功
原轮询 [ -n "$ip" ] 只判非空,members.3322.org 被限流返回 429 HTML
错误页时也判为成功 return,后续更可靠的源不会被尝试。

- 每个响应用 grep -oE 提取合法 IPv4,提取失败(HTML/空)则继续下一个
- 新增 http://ddns.oray.com/checkip 放首位(响应含 'Current IP Address:'
  前缀,grep 提取末尾 IPv4),比 3322 免费 DDNS 更稳定
- 移除 http://4.ipw.cn(部分运营商 DNS 解析失败)
2026-07-11 22:42:53 +08:00
Feng Yu
d4e0ec8fb0 fix(ecs): singbox 分支补齐 ecs_address 判空,失败时终端告警
singbox_modify.sh 之前 ecs_address 为空时仍写入 client_subnet:"",
导致 sing-box 启动时 netip.ParsePrefix("") 报 'no /' FATAL,
服务无法启动。根因是 get_ecsip.sh 在部分环境(如梅林 resolv.conf
无 # Interface wan 标记、members.3322.org 被限流)下拿不到公网 IP。

- singbox_modify.sh: 与 mihomo 分支对齐,加 [ -n ecs_address ] 判空,
  失败时不写字段并 logger 告警
- clash_modify.sh: logger 补颜色码 33(黄色),使告警同样打印到终端,
  原来无颜色码只写日志文件用户无感知
2026-07-11 22:42:53 +08:00
juewuy
732d17087e Merge pull request #1302 from DustinWin/new-dev
sing-box 域名嗅探相关优化
2026-07-11 16:39:32 +08:00
Xiaoyi
433774071a core: choose core storage by weighing rom cost vs ram cost
Replaces the binary compressed-rom check with store_raw_worth_it(),
which decides per environment: store the naked binary on $BINDIR (0 RAM)
only when $TMPDIR is tmpfs AND $BINDIR can hold it with margin
(estimated ~2:1 on squashfs/ubifs, full size otherwise). Otherwise keep
a compressed copy and decompress to tmp as before. core_webget skips
the upx core when raw storage is viable, fetching tar.gz instead.

Rationale (rough budgets for a ~40M core): raw on squashfs ~15M rom /
0 RAM; gz 10M rom / ~40M RAM; upx 9M rom / ~40M RAM (memfd). Raw wins
when rom has room; compressed wins when rom is the scarce resource.

Also corrects the upx branch symlink target $TMPDIR -> $BINDIR (#1295).

For #1304
2026-07-11 16:38:49 +08:00
Xiaoyi
55cfa65875 core: prefer raw binary on compressed rom, avoid upx on tmpfs devices
Adds store_on_rom() helper (tmpfs $TMPDIR + squashfs/ubifs/overlay
$BINDIR). On such devices core_webget no longer downloads the upx core
(its stub decompresses into a memfd = RAM at runtime); it fetches the
tar.gz instead and core_check stores the naked binary as
$BINDIR/CrashCore.raw, symlinked from $TMPDIR. The binary is
transparently compressed on rom and file-backed/reclaimable at runtime
(RssShmem 0). Other filesystems and explicit upx keep prior behavior.

Also corrects the upx branch symlink target $TMPDIR -> $BINDIR (same
dangling-symlink issue as #1295).

For #1304
2026-07-11 15:59:42 +08:00
Xiaoyi
edd6936903 core: store naked core on compressed rom instead of unpacking to tmpfs
On OpenWrt $TMPDIR is tmpfs (RAM) and $BINDIR sits on a
transparently-compressed fs (squashfs/ubifs). Unpacking the core to
$TMPDIR pins the whole ~40MB binary in unreclaimable Shmem, and a
compressed copy is still kept on rom - paying twice.

When $TMPDIR is tmpfs and $BINDIR is squashfs/ubifs/overlay, store the
verified naked binary as $BINDIR/CrashCore.raw and symlink
$TMPDIR/CrashCore to it, dropping the downloaded archive. The binary is
transparently compressed on rom (~2.2:1, comparable to keeping .gz) and
its text/rodata become file-backed and reclaimable at runtime
(RssShmem 0). Other filesystems keep the existing behavior.

The upx branch's symlink target is also corrected from $TMPDIR to
$BINDIR (same dangling-symlink issue as #1295).

For #1304
2026-07-11 15:41:46 +08:00
DustinWin
988c0cde34 sing-box 域名嗅探相关优化 2026-07-07 10:53:01 +08:00
DustinWin
a85cd5b505 Merge branch 'juewuy:dev' into dev 2026-07-07 10:45:02 +08:00
Kanna Kamui
f89ac976a7 Update fw_stop.sh 2026-06-25 20:59:30 +08:00
Kanna Kamui
c25c7800be fix: 修复iptables放行端口添加过多导致溢出的错误
```
iptables v1.8.10 (nf_tables): too many ports specified
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.10 (nf_tables): too many ports specified
Try `iptables -h' or 'iptables --help' for more information.
```
iptables放行端口添加过多导致溢出
2026-06-25 20:56:00 +08:00
Arias Oscar
ca6e79d864 fix: 修复iptables放行端口添加过多导致溢出的错误 2026-06-25 17:11:53 +08:00
Wray
a2720dbe3e 修复某些情况下引入的default字段污染变量 2026-06-07 22:42:28 +09:00
DustinWin
b31c824f94 适配 sing-box v1.14.0-alpha.21+ 版本内核 2026-05-17 22:48:13 +08:00
Wanfung Chu
d37ffc53e0 fix sed error 2026-05-07 00:24:28 +08:00
juewuy
aa21581057 ~bugfix 2026-04-19 14:10:02 +08:00
juewuy
04503ab921 ~为mihomo的mix/route模式dns默认数据库增加每日自动同步 2026-04-19 13:30:34 +08:00
juewuy
0f712fd69f ~将自动任务的配置文件移动到$CRASHDIR/configs/task目录下 2026-04-19 12:06:28 +08:00
juewuy
accc20ff7c ~新手引导添加语言选择 2026-04-19 11:16:35 +08:00
juewuy
85733ebf9d ~修复在线更新配置文件报错的bug 2026-04-19 10:59:23 +08:00
juewuy
438611f27a ~修复部分文本错误 2026-04-19 10:49:41 +08:00
juewuy
791b83ab85 ~DNS服务器中增加了专门用于解析节点域名的改PROXY-SERVER-DNS选项,并移除了对oix的单独适配 2026-04-19 10:40:28 +08:00
juewuy
75b3baa5d9 ~修复在线生成时找不到servers.list的bug 2026-04-19 10:01:59 +08:00
juewuy
8e95c6a292 refactor: split clash_modify yaml workflow into helpers 2026-04-07 09:38:50 +08:00
DustinWin
bcb3d9cabd 优化域名嗅探 2026-04-06 17:33:28 +08:00
juewuy
47c7331623 ~首次添加节点订阅时,不再显示生成选项 2026-04-04 20:23:33 +08:00
juewuy
987ef6ab22 ~优化提示 2026-04-04 20:17:56 +08:00
juewuy
2218161e8f ~修复多语言化导致的自动任务无法正确执行的bug 2026-04-04 20:10:43 +08:00
juewuy
74b304be6f ~修复singbox内核tun模式ipv6相关bug 2026-04-04 20:01:24 +08:00
juewuy
a968551912 ~i18n fix 2026-04-04 19:54:34 +08:00
juewuy
13fc116985 ~修复本地上传内核报错问题 2026-04-04 19:50:42 +08:00
juewuy
2e7d615f8a ~修复编码 2026-04-04 19:35:24 +08:00
juewuy
6b6740a725 ~多语言化优化 2026-04-04 19:21:04 +08:00
juewuy
5e7a46c378 ~修复自定义内核功能异常,并增加Dustinwin内核库 2026-04-04 19:11:15 +08:00
juewuy
c304ec8271 ~修复多语言化导致的一系列显示错误 2026-04-04 18:44:47 +08:00
juewuy
cff3479213 ~bug fix 2026-04-04 12:05:10 +08:00
juewuy
5b94bce400 ~适配oix 2026-04-04 12:02:04 +08:00
juewuy
08e785dc2d ~增加ipv6host获取的fallback 2026-04-04 10:40:35 +08:00
Feng Yu
2d5df04dd4 修复 codex review 警告
从 IPv4 已过滤的 scope link 路由提取 LAN 接口名,再用这些接口名去查 IPv6 全局前缀
2026-03-28 12:47:15 +08:00
juewuy
b4a9702c82 Merge pull request #1248 from abcfy2/dev
添加 `.editorconfig` 配置,约束 `*.sh` 文件格式
2026-03-27 21:30:47 -07:00