Просмотр исходного кода

documentation: Add Wi-Fi state shared page

世界 4 дней назад
Родитель
Сommit
e27a335ee0

+ 4 - 8
docs/configuration/route/rule.md

@@ -428,20 +428,16 @@ Match default interface address.
 
 #### wifi_ssid
 
-!!! quote ""
-
-    Only supported in graphical clients on Android and Apple platforms, or on Linux.
-
 Match WiFi SSID.
 
-#### wifi_bssid
-
-!!! quote ""
+See [Wi-Fi State](/configuration/shared/wifi-state/) for details.
 
-    Only supported in graphical clients on Android and Apple platforms, or on Linux.
+#### wifi_bssid
 
 Match WiFi BSSID.
 
+See [Wi-Fi State](/configuration/shared/wifi-state/) for details.
+
 #### preferred_by
 
 !!! question "Since sing-box 1.13.0"

+ 4 - 8
docs/configuration/route/rule.zh.md

@@ -425,20 +425,16 @@ icon: material/new-box
 
 #### wifi_ssid
 
-!!! quote ""
-
-    仅在 Android 与 Apple 平台图形客户端和 Linux 中支持。
-
 匹配 WiFi SSID。
 
-#### wifi_bssid
-
-!!! quote ""
+参阅 [Wi-Fi 状态](/zh/configuration/shared/wifi-state/)。
 
-    仅在 Android 与 Apple 平台图形客户端和 Linux 中支持。
+#### wifi_bssid
 
 匹配 WiFi BSSID。
 
+参阅 [Wi-Fi 状态](/zh/configuration/shared/wifi-state/)。
+
 #### preferred_by
 
 !!! question "自 sing-box 1.13.0 起"

+ 41 - 0
docs/configuration/shared/wifi-state.md

@@ -0,0 +1,41 @@
+---
+icon: material/new-box
+---
+
+# Wi-Fi State
+
+!!! quote "Changes in sing-box 1.13.0"
+
+    :material-plus: Linux support
+    :material-plus: Windows support
+
+sing-box can monitor Wi-Fi state to enable routing rules based on `wifi_ssid` and `wifi_bssid`.
+
+### Platform Support
+
+| Platform        | Support          | Notes                    |
+|-----------------|------------------|--------------------------|
+| Android         | :material-check: | In graphical client      |
+| Apple platforms | :material-check: | In graphical clients     |
+| Linux           | :material-check: | Requires supported daemon |
+| Windows         | :material-check: | WLAN API                 |
+| Others          | :material-close: |                          |
+
+### Linux
+
+!!! question "Since sing-box 1.13.0"
+
+The following backends are supported and will be auto-detected in order of priority:
+
+| Backend          | Interface   |
+|------------------|-------------|
+| NetworkManager   | D-Bus       |
+| IWD              | D-Bus       |
+| wpa_supplicant   | Unix socket |
+| ConnMan          | D-Bus       |
+
+### Windows
+
+!!! question "Since sing-box 1.13.0"
+
+Uses Windows WLAN API.

+ 41 - 0
docs/configuration/shared/wifi-state.zh.md

@@ -0,0 +1,41 @@
+---
+icon: material/new-box
+---
+
+# Wi-Fi 状态
+
+!!! quote "sing-box 1.13.0 的变更"
+
+    :material-plus: Linux 支持
+    :material-plus: Windows 支持
+
+sing-box 可以监控 Wi-Fi 状态,以启用基于 `wifi_ssid` 和 `wifi_bssid` 的路由规则。
+
+### 平台支持
+
+| 平台            | 支持              | 备注           |
+|-----------------|------------------|----------------|
+| Android         | :material-check: | 仅图形客户端    |
+| Apple 平台      | :material-check: | 仅图形客户端    |
+| Linux           | :material-check: | 需要支持的守护进程 |
+| Windows         | :material-check: | WLAN API       |
+| 其他            | :material-close: |                |
+
+### Linux
+
+!!! question "自 sing-box 1.13.0 起"
+
+支持以下后端,将按优先级顺序自动探测:
+
+| 后端              | 接口         |
+|------------------|-------------|
+| NetworkManager   | D-Bus       |
+| IWD              | D-Bus       |
+| wpa_supplicant   | Unix socket |
+| ConnMan          | D-Bus       |
+
+### Windows
+
+!!! question "自 sing-box 1.13.0 起"
+
+使用 Windows WLAN API。

+ 2 - 0
mkdocs.yml

@@ -126,6 +126,7 @@ nav:
           - V2Ray Transport: configuration/shared/v2ray-transport.md
           - UDP over TCP: configuration/shared/udp-over-tcp.md
           - TCP Brutal: configuration/shared/tcp-brutal.md
+          - Wi-Fi State: configuration/shared/wifi-state.md
       - Endpoint:
           - configuration/endpoint/index.md
           - WireGuard: configuration/endpoint/wireguard.md
@@ -268,6 +269,7 @@ plugins:
             DNS01 Challenge Fields: DNS01 验证字段
             Multiplex: 多路复用
             V2Ray Transport: V2Ray 传输层
+            Wi-Fi State: Wi-Fi 状态
 
             Endpoint: 端点
             Inbound: 入站