gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] 01/02: bind Sandbox only to loopback


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

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

ms pushed a commit to branch master
in repository libeufin.

commit 4dfaa3ec3fb0f913a0e2f5d29173dda296391bc0
Author: ms <ms@taler.net>
AuthorDate: Thu May 5 11:22:49 2022 +0200

    bind Sandbox only to loopback
---
 sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

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]