增加DEMO模式、修复监控节点、用户节点、认证节点无法查看运行日志的Bug

This commit is contained in:
GoEdgeLab
2021-07-21 22:14:33 +08:00
parent 5b6812b8b9
commit 96960ae7e9
15 changed files with 79 additions and 41 deletions

View File

@@ -132,7 +132,7 @@ func (this *CreateAction) RunPost(params struct {
}
case serverconfigs.ServerTypeTCPProxy:
// 在DEMO模式下不能创建
if teaconst.IsDemo {
if teaconst.IsDemoMode {
this.Fail("DEMO模式下不能创建TCP反向代理")
}
@@ -169,7 +169,7 @@ func (this *CreateAction) RunPost(params struct {
}
case serverconfigs.ServerTypeUDPProxy:
// 在DEMO模式下不能创建
if teaconst.IsDemo {
if teaconst.IsDemoMode {
this.Fail("DEMO模式下不能创建UDP反向代理")
}