1
0
Fork 0
forked from External/ergo

Merge remote-tracking branch 'origin/master' into brb.5

This commit is contained in:
Shivaram Lingamneni 2019-05-22 03:29:18 -04:00
commit 851617a4a5
13 changed files with 197 additions and 26 deletions

View file

@ -1108,6 +1108,10 @@ func (am *AccountManager) VHostReject(account string, reason string) (result VHo
func (am *AccountManager) VHostSetEnabled(client *Client, enabled bool) (result VHostInfo, err error) {
munger := func(input VHostInfo) (output VHostInfo, err error) {
if input.ApprovedVHost == "" {
err = errNoVhost
return
}
output = input
output.Enabled = enabled
return