diff --git a/README.md b/README.md index ecf027a..6451348 100644 --- a/README.md +++ b/README.md @@ -1962,17 +1962,19 @@ if($ok){ header("ipconns:2000"); header("userrate:3000"); header("iprate:8000"); - header("UPSTREAM:http://127.0.0.1:3500?parent-type=tcp"); + header("outgoing:http://127.0.0.1:3500?parent-type=tcp"); + header("outgoing:1.1.1.1"); header("HTTP/1.1 204 No Content"); } ``` #### Explanation -Userconns: The maximum number of connections for the user, not limited to 0 or not set this header. -Ipcons: The maximum number of connections for the user IP, not limited to 0 or not set this header. -Userrate: User's single TCP connection rate limit, in bytes/second, is not limited to 0 or does not set this header. -Iprate: The single TCP connection rate limit of the user IP, in bytes/second, not limited to 0 or not set this header. -Upstream: The upstream used, not empty, or not set this header. +userconns: The maximum number of connections for the user, not limited to 0 or not set this header. +ipcons: The maximum number of connections for the user IP, not limited to 0 or not set this header. +userrate: User's single TCP connection rate limit, in bytes/second, is not limited to 0 or does not set this header. +iprate: The single TCP connection rate limit of the user IP, in bytes/second, not limited to 0 or not set this header. +upstream: The upstream used, not empty, or not set this header. +outgoing: The outgoing ip,this option only working which upstream is empty. And the IP must belong to the machine running proxy。 #### Tips 1. By default, `--auth-url` is required to provide the user name and password. If you do not need the client to provide the username and password, and authenticate, you can add `--auth-nouser`. The visit will still access the authentication address `--auth-url` for authentication. Only the $user authentication username and the $pass authentication password received in the php interface are empty when client didn't send username and password. diff --git a/README_ZH.md b/README_ZH.md index 9f25ffe..f4a0a89 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -2119,7 +2119,8 @@ if($ok){ header("ipconns:2000"); header("userrate:3000"); header("iprate:8000"); - header("UPSTREAM:http://127.0.0.1:3500?parent-type=tcp"); + header("upstream:http://127.0.0.1:3500?parent-type=tcp"); + header("outgoing:1.1.1.1"); header("HTTP/1.1 204 No Content"); } ``` @@ -2131,6 +2132,7 @@ ipconns:用户IP的最大连接数,不限制为0或者不设置这个头部 userrate:用户的单个TCP连接速率限制,单位:字节/秒,不限制为0或者不设置这个头部。 iprate:用户IP的单个TCP连接速率限制,单位:字节/秒,不限制为0或者不设置这个头部。 upstream:使用的上级,没有为空,或者不设置这个头部。 +outgoing: 使用的出口IP,这个设置,只有在upstream为空的的时候才有效,这里设置的IP必须是proxy所在机器具有的IP。 #### 提示 diff --git a/docs/manual/manual.md b/docs/manual/manual.md index 442c98f..9ab1a2f 100644 --- a/docs/manual/manual.md +++ b/docs/manual/manual.md @@ -1750,17 +1750,19 @@ if($ok){ header("ipconns:2000"); header("userrate:3000"); header("iprate:8000"); - header("UPSTREAM:http://127.0.0.1:3500?parent-type=tcp"); + header("outgoing:http://127.0.0.1:3500?parent-type=tcp"); + header("outgoing:1.1.1.1"); header("HTTP/1.1 204 No Content"); } ``` #### Explanation -Userconns: The maximum number of connections for the user, not limited to 0 or not set this header. -Ipcons: The maximum number of connections for the user IP, not limited to 0 or not set this header. -Userrate: User's single TCP connection rate limit, in bytes/second, is not limited to 0 or does not set this header. -Iprate: The single TCP connection rate limit of the user IP, in bytes/second, not limited to 0 or not set this header. -Upstream: The upstream used, not empty, or not set this header. +userconns: The maximum number of connections for the user, not limited to 0 or not set this header. +ipcons: The maximum number of connections for the user IP, not limited to 0 or not set this header. +userrate: User's single TCP connection rate limit, in bytes/second, is not limited to 0 or does not set this header. +iprate: The single TCP connection rate limit of the user IP, in bytes/second, not limited to 0 or not set this header. +upstream: The upstream used, not empty, or not set this header. +outgoing: The outgoing ip,this option only working which upstream is empty. And the IP must belong to the machine running proxy。 #### Tips 1. By default, `--auth-url` is required to provide the user name and password. If you do not need the client to provide the username and password, and authenticate, you can add `--auth-nouser`. The visit will still access the authentication address `--auth-url` for authentication. Only the $user authentication username and the $pass authentication password received in the php interface are empty when client didn't send username and password. diff --git a/docs/manual/zh/manual.md b/docs/manual/zh/manual.md index a5d3392..339f642 100644 --- a/docs/manual/zh/manual.md +++ b/docs/manual/zh/manual.md @@ -1893,7 +1893,8 @@ if($ok){ header("ipconns:2000"); header("userrate:3000"); header("iprate:8000"); - header("UPSTREAM:http://127.0.0.1:3500?parent-type=tcp"); + header("upstream:http://127.0.0.1:3500?parent-type=tcp"); + header("outgoing:1.1.1.1"); header("HTTP/1.1 204 No Content"); } ``` @@ -1905,6 +1906,7 @@ ipconns:用户IP的最大连接数,不限制为0或者不设置这个头部 userrate:用户的单个TCP连接速率限制,单位:字节/秒,不限制为0或者不设置这个头部。 iprate:用户IP的单个TCP连接速率限制,单位:字节/秒,不限制为0或者不设置这个头部。 upstream:使用的上级,没有为空,或者不设置这个头部。 +outgoing: 使用的出口IP,这个设置,只有在upstream为空的的时候才有效,这里设置的IP必须是proxy所在机器具有的IP。 #### 提示 diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 5ae94c9..9facd59 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -18,31 +18,31 @@ - https://snail007.host900.com/goproxy/categories/ + https://snail007.host900.com/goproxy/tags/cdn/ 2019-07-05T08:20:48+08:00 0 - https://snail007.host900.com/goproxy/ + https://snail007.host900.com/goproxy/categories/ 2019-07-05T08:20:48+08:00 0 - https://snail007.host900.com/goproxy/posts/ + https://snail007.host900.com/goproxy/ 2019-07-05T08:20:48+08:00 0 - https://snail007.host900.com/goproxy/tags/ + https://snail007.host900.com/goproxy/posts/ 2019-07-05T08:20:48+08:00 0 - https://snail007.host900.com/goproxy/tags/cdn/ + https://snail007.host900.com/goproxy/tags/ 2019-07-05T08:20:48+08:00 0 diff --git a/docs/tags/cdn/index.html b/docs/tags/cdn/index.html index e9d7646..a7beca7 100644 --- a/docs/tags/cdn/index.html +++ b/docs/tags/cdn/index.html @@ -14,7 +14,7 @@ - cdn - GOPROXY IN ACTION + CDN - GOPROXY IN ACTION @@ -77,7 +77,7 @@ diff --git a/docs/tags/cdn/index.xml b/docs/tags/cdn/index.xml index ab1a975..cb5d91a 100644 --- a/docs/tags/cdn/index.xml +++ b/docs/tags/cdn/index.xml @@ -1,9 +1,9 @@ - cdn on GOPROXY IN ACTION + CDN on GOPROXY IN ACTION https://snail007.host900.com/goproxy/tags/cdn/ - Recent content in cdn on GOPROXY IN ACTION + Recent content in CDN on GOPROXY IN ACTION Hugo -- gohugo.io zh-CN Fri, 05 Jul 2019 08:20:48 +0800 diff --git a/docs/tags/index.xml b/docs/tags/index.xml index 311e588..cd84ea7 100644 --- a/docs/tags/index.xml +++ b/docs/tags/index.xml @@ -12,7 +12,7 @@ - cdn + CDN https://snail007.host900.com/goproxy/tags/cdn/ Fri, 05 Jul 2019 08:20:48 +0800