Skip to content

Commit

Permalink
feat: update the deprecated address field in sing-box tun-in
Browse files Browse the repository at this point in the history
  • Loading branch information
7Sageer committed Dec 27, 2024
1 parent 1fcddd5 commit b30a6f6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@

## 📝 最近更新

### 2024-12-07
- 确保在手动选择规则时,预定义规则集的选择框也会自动更新为 "custom"
[查看完整更新日志](/docs/update-log.md)
### 2024-12-27

- 更新了 sing-box tun中废弃的 inet4_address 为 address

## 🔧 项目结构

Expand Down
4 changes: 4 additions & 0 deletions docs/update-log.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 更新日志

## 2024-12-27

- 更新了 sing-box tun中废弃的 inet4_address 为 address

## 2024-12-07

- 确保在手动选择规则时,预定义规则集的选择框也会自动更新为 "custom"
Expand Down
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down

0 comments on commit b30a6f6

Please sign in to comment.