gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] 02/02: bind Nexus only to loopback


From: gnunet
Subject: [libeufin] 02/02: bind Nexus only to loopback
Date: Thu, 05 May 2022 11:25:26 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

commit eb937c60e48893409012fbe0584a270e91452a79
Author: ms <ms@taler.net>
AuthorDate: Thu May 5 11:25:12 2022 +0200

    bind Nexus only to loopback
---
 .../kotlin/tech/libeufin/nexus/server/NexusServer.kt     | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
index e60c4a86..4f1abc81 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
@@ -36,6 +36,7 @@ import io.ktor.client.*
 import io.ktor.features.*
 import io.ktor.http.*
 import io.ktor.jackson.*
+import io.ktor.network.sockets.*
 import io.ktor.request.*
 import io.ktor.response.*
 import io.ktor.routing.*
@@ -1051,7 +1052,20 @@ val nexusApp: Application.() -> Unit = {
     }
 }
 fun serverMain(port: Int) {
-    val server = embeddedServer(Netty, port = port, module = nexusApp)
+    val server = embeddedServer(
+        Netty,
+        environment = applicationEngineEnvironment {
+            connector {
+                this.port = port
+                this.host = "127.0.0.1"
+            }
+            connector {
+                this.port = port
+                this.host = "[::1]"
+            }
+            module(nexusApp)
+        }
+    )
     logger.info("LibEuFin Nexus running on port $port")
     try {
         server.start(wait = true)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]