From b30a6f6047f590408f677c862e7ca771e7cf65fd Mon Sep 17 00:00:00 2001 From: 7Sageer <125936732+7Sageer@users.noreply.github.com> Date: Fri, 27 Dec 2024 20:35:33 +0800 Subject: [PATCH] feat: update the deprecated address field in sing-box tun-in --- README.md | 6 +++--- docs/update-log.md | 4 ++++ src/config.js | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f3efd773..66325ee6 100644 --- a/README.md +++ b/README.md @@ -69,9 +69,9 @@ ## 📝 最近更新 -### 2024-12-07 -- 确保在手动选择规则时,预定义规则集的选择框也会自动更新为 "custom" -[查看完整更新日志](/docs/update-log.md) +### 2024-12-27 + +- 更新了 sing-box tun中废弃的 inet4_address 为 address ## 🔧 项目结构 diff --git a/docs/update-log.md b/docs/update-log.md index 54ee8734..56567e78 100644 --- a/docs/update-log.md +++ b/docs/update-log.md @@ -1,5 +1,9 @@ # 更新日志 +## 2024-12-27 + +- 更新了 sing-box tun中废弃的 inet4_address 为 address + ## 2024-12-07 - 确保在手动选择规则时,预定义规则集的选择框也会自动更新为 "custom" diff --git a/src/config.js b/src/config.js index 2e7cd476..f51a32cc 100644 --- a/src/config.js +++ b/src/config.js @@ -370,7 +370,7 @@ export const SING_BOX_CONFIG = { }, inbounds: [ { type: 'mixed', tag: 'mixed-in', listen: '0.0.0.0', listen_port: 2080 }, - { type: 'tun', tag: 'tun-in', inet4_address: '172.19.0.1/30', auto_route: true, strict_route: true, stack: 'mixed', sniff: true } + { type: 'tun', tag: 'tun-in', address: '172.19.0.1/30', auto_route: true, strict_route: true, stack: 'mixed', sniff: true } ], outbounds: [ { type: 'direct', tag: 'DIRECT' },