File tree 2 files changed +3
-1
lines changed
scorex-basics/src/main/scala/scorex
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ trait Application extends ScorexLogging {
77
77
78
78
checkGenesis()
79
79
80
- Http ().bindAndHandle(combinedRoute, " 0.0.0.0 " , settings.rpcPort)
80
+ Http ().bindAndHandle(combinedRoute, settings.rpcAddress , settings.rpcPort)
81
81
82
82
historySynchronizer ! Unit
83
83
historyReplier ! Unit
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ trait Settings extends ScorexLogging {
79
79
// todo: localOnly & declaredAddress
80
80
81
81
lazy val rpcPort = (settingsJSON \ " rpcPort" ).asOpt[Int ].getOrElse(DefaultRpcPort )
82
+ lazy val rpcAddress = (settingsJSON \ " rpcAddress" ).asOpt[String ].getOrElse(DefaultRpcAddress )
82
83
lazy val rpcAllowed : Seq [String ] = (settingsJSON \ " rpcAllowed" ).asOpt[List [String ]].getOrElse(DefaultRpcAllowed .split(" " ))
83
84
84
85
lazy val offlineGeneration = (settingsJSON \ " offlineGeneration" ).asOpt[Boolean ].getOrElse(false )
@@ -113,6 +114,7 @@ trait Settings extends ScorexLogging {
113
114
lazy val corsAllowed = (settingsJSON \ " cors" ).asOpt[Boolean ].getOrElse(false )
114
115
115
116
private val DefaultRpcPort = 9085
117
+ private val DefaultRpcAddress = " 0.0.0.0"
116
118
private val DefaultRpcAllowed = " 127.0.0.1"
117
119
118
120
private val DefaultBlockGenerationDelay : FiniteDuration = 1 .second
You can’t perform that action at this time.
0 commit comments