Update alpha version
authorJeroen van der Heijden <jeroen@transceptor.technology>
Thu, 3 Dec 2020 10:34:35 +0000 (11:34 +0100)
committerJeroen van der Heijden <jeroen@transceptor.technology>
Thu, 3 Dec 2020 10:34:35 +0000 (11:34 +0100)
include/siri/version.h
itest/testing/server.py
src/siri/api.c
src/siri/health.c

index 0294a64664f98d37808da70f4a3ec38b9602c210..15a908e9b698ca5191b0920257c6aaa0c4ffbe1f 100644 (file)
@@ -15,7 +15,7 @@
  * Note that debian alpha packages should use versions like this:
  *   2.0.34-0alpha0
  */
-#define SIRIDB_VERSION_PRE_RELEASE "-alpha-0"
+#define SIRIDB_VERSION_PRE_RELEASE "-alpha-1"
 
 #ifndef NDEBUG
 #define SIRIDB_VERSION_BUILD_RELEASE "+debug"
index ad4b9dac437d89840f6c95aaecfcf92106022112..63ebae5468af42ee906f962bf542d856e9c6c99d 100644 (file)
@@ -31,7 +31,7 @@ class Server:
     MEM_CHECK = False
     BUILDTYPE = 'Release'
     SERVER_ADDRESS = '%HOSTNAME'
-    IP_SUPPORT = 'ALL'
+    IP_SUPPORT = 'ALL'  # ALL, IPV4ONLY
     TERMINAL = None  # one of [ 'XTERM', 'XFCE4_TERMINAL', None  ]
     BIND_CLIENT_ADDRESS = "::"
     BIND_SERVER_ADDRESS = "::"
index 724ab5033784e11121e8d856133e01cf034359ab..21bfdb68b4c4c74972ca663498eaabe276da1c81 100644 (file)
@@ -837,9 +837,11 @@ int siri_api_init(void)
     if (port == 0)
         return 0;
 
-    if (siri.cfg->ip_support == IP_SUPPORT_IPV4ONLY) {
+    if (siri.cfg->ip_support == IP_SUPPORT_IPV4ONLY)
+    {
         (void) uv_ip4_addr("0.0.0.0", (int) port, (struct sockaddr_in *) &addr);
-    } else {
+    } else
+    {
         (void) uv_ip6_addr("::", (int) port, (struct sockaddr_in6 *) &addr);
     }
 
index 1e9957abd5b90d6f420d00cc2385739909f29fde..c6ca284c14a049647d1ff1f4f59292c3dc24db18 100644 (file)
@@ -312,9 +312,11 @@ int siri_health_init(void)
     struct sockaddr_storage addr = {0};
     uint16_t port = siri.cfg->http_status_port;
 
-    if (siri.cfg->ip_support == IP_SUPPORT_IPV4ONLY) {
+    if (siri.cfg->ip_support == IP_SUPPORT_IPV4ONLY)
+    {
         (void) uv_ip4_addr("0.0.0.0", (int) port, (struct sockaddr_in *) &addr);
-    } else {
+    } else
+    {
         (void) uv_ip6_addr("::", (int) port, (struct sockaddr_in6 *) &addr);
     }