[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: dual stack and SPA
From: |
gnunet |
Subject: |
[libeufin] branch master updated: dual stack and SPA |
Date: |
Fri, 29 Apr 2022 14:38:16 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new aaf811d3 dual stack and SPA
aaf811d3 is described below
commit aaf811d3966f60cec0ffa58e83544654cbb2721f
Author: ms <ms@taler.net>
AuthorDate: Fri Apr 29 14:38:06 2022 +0200
dual stack and SPA
---
nexus/build.gradle | 1 +
nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 5 +++--
nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt | 4 ++--
sandbox/build.gradle | 3 ++-
sandbox/src/main/resources/static/spa.html | 2 +-
5 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/nexus/build.gradle b/nexus/build.gradle
index 77a2c6a2..4d4f9041 100644
--- a/nexus/build.gradle
+++ b/nexus/build.gradle
@@ -107,6 +107,7 @@ dependencies {
application {
mainClassName = "tech.libeufin.nexus.MainKt"
applicationName = "libeufin-nexus"
+ applicationDefaultJvmArgs = ['-Djava.net.preferIPv6Addresses=true']
}
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index 115ddb7f..18ed288a 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -58,7 +58,8 @@ class Serve : CliktCommand("Run nexus HTTP server") {
helpFormatter = CliktHelpFormatter(showDefaultValues = true)
}
}
- private val host by option().default("127.0.0.1")
+ // Prevent IPv6 mode:
+ // private val host by option().default("127.0.0.1")
private val port by option().int().default(5001)
private val withUnixSocket by option(
help = "Bind the Sandbox to the Unix domain socket at PATH.
Overrides" +
@@ -78,7 +79,7 @@ class Serve : CliktCommand("Run nexus HTTP server") {
)
exitProcess(0)
}
- serverMain(host, port)
+ serverMain(port)
}
}
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 e9d7fb3a..e60c4a86 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
@@ -1050,8 +1050,8 @@ val nexusApp: Application.() -> Unit = {
}
}
}
-fun serverMain(host: String, port: Int) {
- val server = embeddedServer(Netty, port = port, host = host, module =
nexusApp)
+fun serverMain(port: Int) {
+ val server = embeddedServer(Netty, port = port, module = nexusApp)
logger.info("LibEuFin Nexus running on port $port")
try {
server.start(wait = true)
diff --git a/sandbox/build.gradle b/sandbox/build.gradle
index 1f80b41a..41a1d7f8 100644
--- a/sandbox/build.gradle
+++ b/sandbox/build.gradle
@@ -48,7 +48,7 @@ dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.21'
implementation 'ch.qos.logback:logback-classic:1.2.5'
- // XML Stuff
+ // XML:
implementation "javax.xml.bind:jaxb-api:2.3.0"
implementation "org.glassfish.jaxb:jaxb-runtime:2.3.1"
implementation 'org.apache.santuario:xmlsec:2.2.2'
@@ -79,6 +79,7 @@ dependencies {
application {
mainClassName = "tech.libeufin.sandbox.MainKt"
applicationName = "libeufin-sandbox"
+ applicationDefaultJvmArgs = ['-Djava.net.preferIPv6Addresses=true']
}
diff --git a/sandbox/src/main/resources/static/spa.html
b/sandbox/src/main/resources/static/spa.html
index 35633a7c..e6bfffdd 100644
--- a/sandbox/src/main/resources/static/spa.html
+++ b/sandbox/src/main/resources/static/spa.html
@@ -6,4 +6,4 @@ https://github.com/yahoo/pure/blob/master/LICENSE.md
*//*!
normalize.css v^3.0 | MIT License | git.io/normalize
Copyright (c) Nicolas Gallagher and Jonathan Neal
-*//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css
*/html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[
[...]
\ No newline at end of file
+*//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css
*/html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[
[...]
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: dual stack and SPA,
gnunet <=