mirror of
https://gitee.com/BTAJL/repchain.git
synced 2024-12-03 20:28:35 +08:00
修改单机启动端口冲突问题
This commit is contained in:
parent
767b1b30ca
commit
8397b02dba
@ -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
|
||||
}
|
||||
|
@ -105,6 +105,7 @@ class ClusterSystem(sysTag: String, initType: Int, sysStart:Boolean) {
|
||||
* 是否开启Web Socket(API)
|
||||
*/
|
||||
def enableWS() = enableWebSocket = true
|
||||
def disableWS() = enableWebSocket = false
|
||||
|
||||
/**
|
||||
* 获取用户和系统的联合配置
|
||||
|
Loading…
Reference in New Issue
Block a user