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

This commit is contained in:
刘祥超
2021-07-21 22:14:33 +08:00
parent fcbed5f63e
commit 8a926eabbe
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反向代理")
}