mirror of
https://github.com/fatedier/frp.git
synced 2026-01-11 22:23:12 +00:00
utils/vhost: supprot http authentication
This commit is contained in:
@@ -156,6 +156,16 @@ func LoadConf(confFile string) (err error) {
|
||||
if ok {
|
||||
proxyClient.HostHeaderRewrite = tmpStr
|
||||
}
|
||||
//http_username
|
||||
tmpStr, ok = section["http_username"]
|
||||
if ok {
|
||||
proxyClient.HttpUserName = tmpStr
|
||||
}
|
||||
//http_password
|
||||
tmpStr, ok = section["http_password"]
|
||||
if ok {
|
||||
proxyClient.HttpPassWord = tmpStr
|
||||
}
|
||||
}
|
||||
|
||||
// privilege_mode
|
||||
|
||||
Reference in New Issue
Block a user