限制TCP和UDP网站操作HTTP网站的功能

This commit is contained in:
GoEdgeLab
2024-04-14 16:45:17 +08:00
parent b4625f6abf
commit 662e621a9e
24 changed files with 125 additions and 3 deletions

View File

@@ -22,6 +22,11 @@ func (this *IndexAction) Init() {
func (this *IndexAction) RunGet(params struct {
ServerId int64
}) {
// 只有HTTP服务才支持
if this.FilterHTTPFamily() {
return
}
webConfig, err := dao.SharedHTTPWebDAO.FindWebConfigWithServerId(this.AdminContext(), params.ServerId)
if err != nil {
this.ErrorPage(err)