Skip to content

Commit f0b1171

Browse files
committed
documentation: Add Wi-Fi state shared page
1 parent bcee709 commit f0b1171

File tree

5 files changed

+92
-16
lines changed

5 files changed

+92
-16
lines changed

docs/configuration/route/rule.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -428,20 +428,16 @@ Match default interface address.
428428

429429
#### wifi_ssid
430430

431-
!!! quote ""
432-
433-
Only supported in graphical clients on Android and Apple platforms, or on Linux.
434-
435431
Match WiFi SSID.
436432

437-
#### wifi_bssid
438-
439-
!!! quote ""
433+
See [Wi-Fi State](/configuration/shared/wifi-state/) for details.
440434

441-
Only supported in graphical clients on Android and Apple platforms, or on Linux.
435+
#### wifi_bssid
442436

443437
Match WiFi BSSID.
444438

439+
See [Wi-Fi State](/configuration/shared/wifi-state/) for details.
440+
445441
#### preferred_by
446442

447443
!!! question "Since sing-box 1.13.0"

docs/configuration/route/rule.zh.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -425,20 +425,16 @@ icon: material/new-box
425425

426426
#### wifi_ssid
427427

428-
!!! quote ""
429-
430-
仅在 Android 与 Apple 平台图形客户端和 Linux 中支持。
431-
432428
匹配 WiFi SSID。
433429

434-
#### wifi_bssid
435-
436-
!!! quote ""
430+
参阅 [Wi-Fi 状态](/zh/configuration/shared/wifi-state/)
437431

438-
仅在 Android 与 Apple 平台图形客户端和 Linux 中支持。
432+
#### wifi_bssid
439433

440434
匹配 WiFi BSSID。
441435

436+
参阅 [Wi-Fi 状态](/zh/configuration/shared/wifi-state/)
437+
442438
#### preferred_by
443439

444440
!!! question "自 sing-box 1.13.0 起"
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
icon: material/new-box
3+
---
4+
5+
# Wi-Fi State
6+
7+
!!! quote "Changes in sing-box 1.13.0"
8+
9+
:material-plus: Linux support
10+
:material-plus: Windows support
11+
12+
sing-box can monitor Wi-Fi state to enable routing rules based on `wifi_ssid` and `wifi_bssid`.
13+
14+
### Platform Support
15+
16+
| Platform | Support | Notes |
17+
|-----------------|------------------|--------------------------|
18+
| Android | :material-check: | In graphical client |
19+
| Apple platforms | :material-check: | In graphical clients |
20+
| Linux | :material-check: | Requires supported daemon |
21+
| Windows | :material-check: | WLAN API |
22+
| Others | :material-close: | |
23+
24+
### Linux
25+
26+
!!! question "Since sing-box 1.13.0"
27+
28+
The following backends are supported and will be auto-detected in order of priority:
29+
30+
| Backend | Interface |
31+
|------------------|-------------|
32+
| NetworkManager | D-Bus |
33+
| IWD | D-Bus |
34+
| wpa_supplicant | Unix socket |
35+
| ConnMan | D-Bus |
36+
37+
### Windows
38+
39+
!!! question "Since sing-box 1.13.0"
40+
41+
Uses Windows WLAN API.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
icon: material/new-box
3+
---
4+
5+
# Wi-Fi 状态
6+
7+
!!! quote "sing-box 1.13.0 的变更"
8+
9+
:material-plus: Linux 支持
10+
:material-plus: Windows 支持
11+
12+
sing-box 可以监控 Wi-Fi 状态,以启用基于 `wifi_ssid``wifi_bssid` 的路由规则。
13+
14+
### 平台支持
15+
16+
| 平台 | 支持 | 备注 |
17+
|-----------------|------------------|----------------|
18+
| Android | :material-check: | 仅图形客户端 |
19+
| Apple 平台 | :material-check: | 仅图形客户端 |
20+
| Linux | :material-check: | 需要支持的守护进程 |
21+
| Windows | :material-check: | WLAN API |
22+
| 其他 | :material-close: | |
23+
24+
### Linux
25+
26+
!!! question "自 sing-box 1.13.0 起"
27+
28+
支持以下后端,将按优先级顺序自动探测:
29+
30+
| 后端 | 接口 |
31+
|------------------|-------------|
32+
| NetworkManager | D-Bus |
33+
| IWD | D-Bus |
34+
| wpa_supplicant | Unix socket |
35+
| ConnMan | D-Bus |
36+
37+
### Windows
38+
39+
!!! question "自 sing-box 1.13.0 起"
40+
41+
使用 Windows WLAN API。

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ nav:
126126
- V2Ray Transport: configuration/shared/v2ray-transport.md
127127
- UDP over TCP: configuration/shared/udp-over-tcp.md
128128
- TCP Brutal: configuration/shared/tcp-brutal.md
129+
- Wi-Fi State: configuration/shared/wifi-state.md
129130
- Endpoint:
130131
- configuration/endpoint/index.md
131132
- WireGuard: configuration/endpoint/wireguard.md
@@ -268,6 +269,7 @@ plugins:
268269
DNS01 Challenge Fields: DNS01 验证字段
269270
Multiplex: 多路复用
270271
V2Ray Transport: V2Ray 传输层
272+
Wi-Fi State: Wi-Fi 状态
271273

272274
Endpoint: 端点
273275
Inbound: 入站

0 commit comments

Comments
 (0)