浏览代码

fix(service): 修复 UDP 状态配置错误

- 将 "开通" UDP 对应的 IsBanUdp 值改为 0- 将 "关闭" UDP 对应的 IsBanUdp值改为 1
fusu 3 周之前
父节点
当前提交
be1b42a1a0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      internal/service/host.go

+ 2 - 2
internal/service/host.go

@@ -263,10 +263,10 @@ func (s *hostService) GetGlobalLimitConfig(ctx context.Context, hostId int) (v1.
 
 	if val, ok := configsMap[IsBanUdp]; ok {
 		if val == "开通" {
-			data.IsBanUdp = 1
+			data.IsBanUdp = 0
 		}
 		if val == "关闭" {
-			data.IsBanUdp = 0
+			data.IsBanUdp = 1
 		}
 	}
 	return data, nil