diff --git a/src/main/scala/rep/app/Repchain.scala b/src/main/scala/rep/app/Repchain.scala index 4e3e5ee0..b0a8e661 100644 --- a/src/main/scala/rep/app/Repchain.scala +++ b/src/main/scala/rep/app/Repchain.scala @@ -61,6 +61,7 @@ object Repchain { val sys = new ClusterSystem(nodelist(i-2),InitType.MULTI_INIT,true) sys.init sys.joinCluster(joinAddress) + sys.disableWS() sys.start nodes += sys } diff --git a/src/main/scala/rep/app/system/ClusterSystem.scala b/src/main/scala/rep/app/system/ClusterSystem.scala index c32c6585..355d4ab0 100644 --- a/src/main/scala/rep/app/system/ClusterSystem.scala +++ b/src/main/scala/rep/app/system/ClusterSystem.scala @@ -105,6 +105,7 @@ class ClusterSystem(sysTag: String, initType: Int, sysStart:Boolean) { * 是否开启Web Socket(API) */ def enableWS() = enableWebSocket = true + def disableWS() = enableWebSocket = false /** * 获取用户和系统的联合配置