mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 15:20:25 +08:00
实现重写规则管理
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user