mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-12 17:48:35 -07:00
fix #404
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user