This commit is contained in:
0xmuralik
2023-03-13 16:56:29 +05:30
parent ae81ff9c57
commit db034c2e43
3 changed files with 2 additions and 5 deletions
+1 -2
View File
@@ -331,8 +331,7 @@ func New(l Logger, baseDir string, cfg Config) (*Network, error) { // nosemgrep
appCfg.JSONRPC.Address = cfg.JSONRPCAddress
} else {
_, jsonRPCPort, err := server.FreeTCPAddr()
if err != nil {
if err != nil { // nosemgrep
return nil, err // nosemgrep
}
appCfg.JSONRPC.Address = fmt.Sprintf("127.0.0.1:%s", jsonRPCPort)