From ddbb56ee8f9370abe4f740ded683bb4d630f3897 Mon Sep 17 00:00:00 2001 From: fatedier Date: Wed, 21 Dec 2016 01:07:30 +0800 Subject: [PATCH] update --- conf/frpc.ini | 6 +++--- src/models/client/config.go | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/conf/frpc.ini b/conf/frpc.ini index 4addc67..9a2d729 100644 --- a/conf/frpc.ini +++ b/conf/frpc.ini @@ -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 diff --git a/src/models/client/config.go b/src/models/client/config.go index 1c78da1..7c00a10 100644 --- a/src/models/client/config.go +++ b/src/models/client/config.go @@ -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 }