diff options
author | zachdriver <zach@driver.xyz> | 2017-12-14 10:03:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-14 10:03:29 -0800 |
commit | 125d031488abc106eded91f604e2a81adb08e1b6 (patch) | |
tree | de249c9f9575c0e57145727d9df803250f458dea | |
parent | e7f3907f174ad283a7c1c3306ed1077014e42568 (diff) | |
parent | f2c2bff5dfb11f057e3f71dcd34b83c4ae00877e (diff) | |
download | driver-core-125d031488abc106eded91f604e2a81adb08e1b6.tar.gz driver-core-125d031488abc106eded91f604e2a81adb08e1b6.tar.bz2 driver-core-125d031488abc106eded91f604e2a81adb08e1b6.zip |
Merge pull request #96 from drivergroup/zsmith/network-interface
Change default binding network interface to accommodate ipv4
-rw-r--r-- | src/main/scala/xyz/driver/core/app/init.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/scala/xyz/driver/core/app/init.scala b/src/main/scala/xyz/driver/core/app/init.scala index 6cdd46f..119c91a 100644 --- a/src/main/scala/xyz/driver/core/app/init.scala +++ b/src/main/scala/xyz/driver/core/app/init.scala @@ -29,7 +29,7 @@ object init { * Otherwise if another command causes the logger to be instantiated, * it will default to logback.xml, and not honor this configuration */ - def configureLogging() = { + def configureLogging(): Unit = { scala.sys.env.get("JSON_LOGGING") match { case Some("true") => System.setProperty("logback.configurationFile", "deployed-logback.xml") @@ -64,7 +64,7 @@ object init { } } - def serviceActorSystem(serviceName: String, executionContext: ExecutionContext, config: Config) = { + def serviceActorSystem(serviceName: String, executionContext: ExecutionContext, config: Config): ActorSystem = { val actorSystem = ActorSystem(s"$serviceName-actors", Option(config), Option.empty[ClassLoader], Option(executionContext)) @@ -81,7 +81,7 @@ object init { def newFixedMdcExecutionContext(capacity: Int): MdcExecutionContext = toMdcExecutionContext(Executors.newFixedThreadPool(capacity)) - def defaultApplicationContext() = { + def defaultApplicationContext(): ApplicationContext = { val config = getEnvironmentSpecificConfig() val time = new SystemTimeProvider() @@ -95,7 +95,7 @@ object init { buildInfo: RequiredBuildInfo, actorSystem: ActorSystem, tracer: Tracer, - context: ApplicationContext) = { + context: ApplicationContext): DriverApp = { val scheme = context.config.getString("application.scheme") val baseUrl = context.config.getString("application.baseUrl") val port = context.config.getInt("application.port") @@ -108,7 +108,7 @@ object init { context.time, context.log, context.config, - interface = "::0", + interface = "0.0.0.0", baseUrl, scheme, port, |