test cobra

This commit is contained in:
wangchuxiao
2023-03-06 18:26:23 +08:00
parent 94b0d55516
commit 6ca1d403b2
8 changed files with 55 additions and 17 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ func (r *RPCServer) onInit(rpcPort int) {
func (r *RPCServer) run() {
listenIP := ""
if config.Config.ListenIP == "" {
listenIP = "0.0.0.0"
listenIP = constant.LocalHost
} else {
listenIP = config.Config.ListenIP
}