From c24df037acb486c443919a0a4c3c57f56dba86e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sun, 5 Mar 2023 15:19:13 +0800 Subject: [PATCH] Add documentation for tun platform options --- docs/configuration/inbound/tun.md | 19 +++++++++++++++++-- docs/configuration/inbound/tun.zh.md | 19 +++++++++++++++++-- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/docs/configuration/inbound/tun.md b/docs/configuration/inbound/tun.md index 0528fec4..faa685bc 100644 --- a/docs/configuration/inbound/tun.md +++ b/docs/configuration/inbound/tun.md @@ -46,8 +46,15 @@ "exclude_package": [ "com.android.captiveportallogin" ], - ... - // Listen Fields + "platform": { + "http_proxy": { + "enabled": false, + "server": "127.0.0.1", + "server_port": 8080 + } + }, + + ... // Listen Fields } ``` @@ -187,6 +194,14 @@ Limit android packages in route. Exclude android packages in route. +#### platform + +Platform-specific settings, provided by client applications. + +#### platform.http_proxy + +System HTTP proxy settings. + ### Listen Fields See [Listen Fields](/configuration/shared/listen) for details. diff --git a/docs/configuration/inbound/tun.zh.md b/docs/configuration/inbound/tun.zh.md index 8fb99006..11bc9419 100644 --- a/docs/configuration/inbound/tun.zh.md +++ b/docs/configuration/inbound/tun.zh.md @@ -46,8 +46,15 @@ "exclude_package": [ "com.android.captiveportallogin" ], - ... - // 监听字段 + "platform": { + "http_proxy": { + "enabled": false, + "server": "127.0.0.1", + "server_port": 8080 + } + }, + + ... // 监听字段 } ``` @@ -183,6 +190,14 @@ TCP/IP 栈。 排除路由的 Android 应用包名。 +#### platform + +平台特定的设置,由客户端应用提供。 + +#### platform.http_proxy + +系统 HTTP 代理设置。 + ### 监听字段 参阅 [监听字段](/zh/configuration/shared/listen/)。