diff options
author | Zach Smith <zach@driver.xyz> | 2017-12-13 14:46:55 -0800 |
---|---|---|
committer | Zach Smith <zach@driver.xyz> | 2017-12-13 14:46:55 -0800 |
commit | f2c2bff5dfb11f057e3f71dcd34b83c4ae00877e (patch) | |
tree | de249c9f9575c0e57145727d9df803250f458dea /src | |
parent | e7f3907f174ad283a7c1c3306ed1077014e42568 (diff) | |
download | driver-core-f2c2bff5dfb11f057e3f71dcd34b83c4ae00877e.tar.gz driver-core-f2c2bff5dfb11f057e3f71dcd34b83c4ae00877e.tar.bz2 driver-core-f2c2bff5dfb11f057e3f71dcd34b83c4ae00877e.zip |
Change default binding network interface to accomodate ipv4
::0 is an IPv6-only network address, which forces the app to always use v6.
This is a problem in Travis currently, which apparently doesn't support IPv6.
Changing to 0.0.0.0 should allow both v4 and v6
Diffstat (limited to 'src')
-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, |