Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fatedier committed Dec 20, 2016
1 parent 10fc6c6 commit ddbb56e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions conf/frpc.ini
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ local_ip = 127.0.0.1
local_port = 80
use_gzip = true
pool_count = 20
# http username and password are safety certification for http protoc
# http username and password are safety certification for http protocol
# if not set, you can access this custom_domains without certification
http_username = admin
http_password = admin
http_user = admin
http_pwd = admin
# if domain for frps is frps.com, then you can access [web01] proxy by URL http://test.frps.com
subdomain = test

Expand Down
8 changes: 4 additions & 4 deletions src/models/client/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ func LoadConf(confFile string) (err error) {
if ok {
proxyClient.HostHeaderRewrite = tmpStr
}
// http_username
tmpStr, ok = section["http_username"]
// http_user
tmpStr, ok = section["http_user"]
if ok {
proxyClient.HttpUserName = tmpStr
}
// http_password
tmpStr, ok = section["http_password"]
// http_pwd
tmpStr, ok = section["http_pwd"]
if ok {
proxyClient.HttpPassWord = tmpStr
}
Expand Down

0 comments on commit ddbb56e

Please sign in to comment.