forked from External/ergo
Merge remote-tracking branch 'origin/master' into brb.5
This commit is contained in:
commit
851617a4a5
13 changed files with 197 additions and 26 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue