实现重写规则管理

This commit is contained in:
GoEdgeLab
2020-09-28 16:25:26 +08:00
parent 1353ad9e6d
commit f459632dd6
37 changed files with 935 additions and 66 deletions

View File

@@ -48,6 +48,7 @@ func (this *IndexAction) RunGet(params struct {
func (this *IndexAction) RunPost(params struct {
ServerId int64
IsOn bool
Addresses string
Must *actions.Must
@@ -69,10 +70,9 @@ func (this *IndexAction) RunPost(params struct {
this.ErrorPage(err)
return
}
} else {
httpsConfig.IsOn = true
}
httpsConfig.IsOn = params.IsOn
httpsConfig.Listen = addresses
configData, err := json.Marshal(httpsConfig)
if err != nil {