修改单机启动端口冲突问题

This commit is contained in:
wuwei1972 2019-03-22 15:09:43 +08:00
parent 767b1b30ca
commit 8397b02dba
2 changed files with 2 additions and 0 deletions

View File

@ -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
}

View File

@ -105,6 +105,7 @@ class ClusterSystem(sysTag: String, initType: Int, sysStart:Boolean) {
* 是否开启Web SocketAPI
*/
def enableWS() = enableWebSocket = true
def disableWS() = enableWebSocket = false
/**
* 获取用户和系统的联合配置