mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-08 07:50:28 +08:00
增加DEMO模式、修复监控节点、用户节点、认证节点无法查看运行日志的Bug
This commit is contained in:
@@ -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反向代理")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user