mirror of
https://gitee.com/IrisVega/frp.git
synced 2024-11-01 22:31:29 +08:00
typo
This commit is contained in:
parent
8c497793c5
commit
adcb2c1ea5
@ -36,6 +36,10 @@ local_ip = 127.0.0.1
|
|||||||
local_port = 80
|
local_port = 80
|
||||||
use_gzip = true
|
use_gzip = true
|
||||||
pool_count = 20
|
pool_count = 20
|
||||||
|
# http username and password are safety certification for http protoc
|
||||||
|
# if not set, you can access this custom_domains without certification
|
||||||
|
http_username = admin
|
||||||
|
http_password = admin
|
||||||
|
|
||||||
[web02]
|
[web02]
|
||||||
type = http
|
type = http
|
||||||
|
@ -41,11 +41,6 @@ auth_token = 123
|
|||||||
# if proxy type equals http, custom_domains must be set separated by commas
|
# if proxy type equals http, custom_domains must be set separated by commas
|
||||||
custom_domains = web01.yourdomain.com,web01.yourdomain2.com
|
custom_domains = web01.yourdomain.com,web01.yourdomain2.com
|
||||||
|
|
||||||
# http username and password are safety certification for http protoc
|
|
||||||
# if not set, you can access this custom_domains without certification
|
|
||||||
http_username = admin
|
|
||||||
http_password = admin
|
|
||||||
|
|
||||||
[web02]
|
[web02]
|
||||||
# if type equals https, vhost_https_port must be set
|
# if type equals https, vhost_https_port must be set
|
||||||
type = https
|
type = https
|
||||||
|
@ -90,8 +90,7 @@ func (p *ProxyServer) Init() {
|
|||||||
|
|
||||||
func (p *ProxyServer) Compare(p2 *ProxyServer) bool {
|
func (p *ProxyServer) Compare(p2 *ProxyServer) bool {
|
||||||
if p.Name != p2.Name || p.AuthToken != p2.AuthToken || p.Type != p2.Type ||
|
if p.Name != p2.Name || p.AuthToken != p2.AuthToken || p.Type != p2.Type ||
|
||||||
p.BindAddr != p2.BindAddr || p.ListenPort != p2.ListenPort || p.HostHeaderRewrite != p2.HostHeaderRewrite ||
|
p.BindAddr != p2.BindAddr || p.ListenPort != p2.ListenPort || p.HostHeaderRewrite != p2.HostHeaderRewrite {
|
||||||
p.HttpUserName != p2.HttpUserName || p.HttpPassWord != p2.HttpPassWord {
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if len(p.CustomDomains) != len(p2.CustomDomains) {
|
if len(p.CustomDomains) != len(p2.CustomDomains) {
|
||||||
|
Loading…
Reference in New Issue
Block a user