gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated (ea304fd0 -> eb937c60)


From: gnunet
Subject: [libeufin] branch master updated (ea304fd0 -> eb937c60)
Date: Thu, 05 May 2022 11:25:24 +0200

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

ms pushed a change to branch master
in repository libeufin.

    from ea304fd0 fix person name option (CLI)
     new 4dfaa3ec bind Sandbox only to loopback
     new eb937c60 bind Nexus only to loopback

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../kotlin/tech/libeufin/nexus/server/NexusServer.kt     | 16 +++++++++++++++-
 sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt    | 15 ++++++++++++++-
 2 files changed, 29 insertions(+), 2 deletions(-)

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)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index 7e1aca30..4311ab9a 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -1505,7 +1505,20 @@ val sandboxApp: Application.() -> Unit = {
 }
 
 fun serverMain(port: Int) {
-    val server = embeddedServer(Netty, port = port, module = sandboxApp)
+    val server = embeddedServer(
+        Netty,
+        environment = applicationEngineEnvironment{
+            connector {
+                this.port = port
+                this.host = "127.0.0.1"
+            }
+            connector {
+                this.port = port
+                this.host = "[::1]"
+            }
+            module(sandboxApp)
+        }
+    )
     logger.info("LibEuFin Sandbox 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]