mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-04-23 05:15:17 +08:00
限制TCP和UDP网站操作HTTP网站的功能
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package charset
|
||||
|
||||
import ( "github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/configutils"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/langs/codes"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/dao"
|
||||
@@ -21,6 +22,11 @@ func (this *IndexAction) Init() {
|
||||
func (this *IndexAction) RunGet(params struct {
|
||||
ServerId int64
|
||||
}) {
|
||||
// 只有HTTP服务才支持
|
||||
if this.FilterHTTPFamily() {
|
||||
return
|
||||
}
|
||||
|
||||
// 服务分组设置
|
||||
groupResp, err := this.RPC().ServerGroupRPC().FindEnabledServerGroupConfigInfo(this.AdminContext(), &pb.FindEnabledServerGroupConfigInfoRequest{
|
||||
ServerId: params.ServerId,
|
||||
|
||||
Reference in New Issue
Block a user