From f2c2bff5dfb11f057e3f71dcd34b83c4ae00877e Mon Sep 17 00:00:00 2001 From: Zach Smith Date: Wed, 13 Dec 2017 14:46:55 -0800 Subject: 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 --- src/main/scala/xyz/driver/core/app/init.scala | 10 +++++----- 1 file 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, -- cgit v1.2.3