Merge pull request #101 from fatedier/maodanp/http_auth

Maodanp/http auth
This commit is contained in:
fatedier
2016-09-05 22:25:01 -05:00
committed by GitHub
10 changed files with 110 additions and 19 deletions

View File

@@ -287,6 +287,8 @@ func doLogin(req *msg.ControlReq, c *conn.Conn) (ret int64, info string) {
s.UseEncryption = req.UseEncryption
s.UseGzip = req.UseGzip
s.HostHeaderRewrite = req.HostHeaderRewrite
s.HttpUserName = req.HttpUserName
s.HttpPassWord = req.HttpPassWord
if req.PoolCount > server.MaxPoolCount {
s.PoolCount = server.MaxPoolCount
} else if req.PoolCount < 0 {