Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package nftlb for openSUSE:Factory checked 
in at 2022-12-05 18:00:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nftlb (Old)
 and      /work/SRC/openSUSE:Factory/.nftlb.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nftlb"

Mon Dec  5 18:00:52 2022 rev:3 rq:1040011 version:1.0.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/nftlb/nftlb.changes      2022-09-20 
19:24:13.562584588 +0200
+++ /work/SRC/openSUSE:Factory/.nftlb.new.1835/nftlb.changes    2022-12-05 
18:00:55.788492924 +0100
@@ -1,0 +2,8 @@
+Sun Dec  4 14:49:11 UTC 2022 - Dirk Müller <dmuel...@suse.com>
+
+- update to 1.0.7:
+  * Controlling the server behaviour using environment variables
+    You can also specify a custom server key via the `NFTLB_SERVER_KEY`
+    environment variable. Zero length keys will be ignored.
+
+-------------------------------------------------------------------

Old:
----
  v1.0.6.tar.gz

New:
----
  v1.0.7.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nftlb.spec ++++++
--- /var/tmp/diff_new_pack.cL5B64/_old  2022-12-05 18:00:56.452496539 +0100
+++ /var/tmp/diff_new_pack.cL5B64/_new  2022-12-05 18:00:56.456496561 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           nftlb
-Version:        1.0.6
+Version:        1.0.7
 Release:        0
 Summary:        nftables load balancer
 License:        AGPL-3.0-or-later

++++++ v1.0.6.tar.gz -> v1.0.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nftlb-1.0.6/README.md new/nftlb-1.0.7/README.md
--- old/nftlb-1.0.6/README.md   2022-06-28 14:36:47.000000000 +0200
+++ new/nftlb-1.0.7/README.md   2022-10-28 10:39:01.000000000 +0200
@@ -57,6 +57,13 @@
 
 Note: In order to use sNAT or dNAT modes, ensure you have activated the ip 
forwarding option in your system.
 
+### Controlling the server behaviour using environment variables
+You can also specify a custom server key via the `NFTLB_SERVER_KEY` 
environment variable. Zero length keys will be ignored.
+
+```
+root# NFTLB_SERVER_KEY="changeme" nftlb -d
+```
+
 ### JSON configuration file
 The configuration files have the following format:
 ```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nftlb-1.0.6/configure.ac new/nftlb-1.0.7/configure.ac
--- old/nftlb-1.0.6/configure.ac        2022-06-28 14:36:47.000000000 +0200
+++ new/nftlb-1.0.7/configure.ac        2022-10-28 10:39:01.000000000 +0200
@@ -1,4 +1,4 @@
-AC_INIT([nftlb], [1.0.6], [netfilter-de...@vger.kernel.org])
+AC_INIT([nftlb], [1.0.7], [netfilter-de...@vger.kernel.org])
 
 AC_CONFIG_AUX_DIR([build-aux])
 AC_CONFIG_MACRO_DIR([m4])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nftlb-1.0.6/src/backends.c 
new/nftlb-1.0.7/src/backends.c
--- old/nftlb-1.0.6/src/backends.c      2022-06-28 14:36:47.000000000 +0200
+++ new/nftlb-1.0.7/src/backends.c      2022-10-28 10:39:01.000000000 +0200
@@ -816,9 +816,14 @@
 
        switch (new_value) {
        case VALUE_STATE_CONFERR:
+               if (old_value == VALUE_STATE_UP)
+                       b->action = ACTION_STOP;
+               break;
        case VALUE_STATE_OFF:
                if (old_value == VALUE_STATE_UP)
                        b->action = ACTION_STOP;
+               if (old_value == VALUE_STATE_DOWN)
+                       b->action = ACTION_START;
                break;
        case VALUE_STATE_AVAIL:
                if (old_value == VALUE_STATE_UP)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nftlb-1.0.6/src/main.c new/nftlb-1.0.7/src/main.c
--- old/nftlb-1.0.6/src/main.c  2022-06-28 14:36:47.000000000 +0200
+++ new/nftlb-1.0.7/src/main.c  2022-10-28 10:39:01.000000000 +0200
@@ -40,6 +40,7 @@
 #define NFTLB_BG_MODE                  1
 #define NFTLB_EXIT_MODE                        1
 #define NFTLB_NFT_SERIALIZE            0
+#define NFTLB_SERVER_KEY_VAR   "NFTLB_SERVER_KEY"
 
 unsigned int serialize = NFTLB_NFT_SERIALIZE;
 int masquerade_mark = NFTLB_MASQUERADE_MARK_DEFAULT;
@@ -154,6 +155,7 @@
        int             logoutput = NFTLB_LOG_OUTPUT_DEFAULT;
        const char      *config = NULL;
        pid_t   pid;
+       char *_server_key;
 
        while ((c = getopt_long(argc, argv, "hl:L:c:k:ed6H:P:Sm:", options, 
NULL)) != -1) {
                switch (c) {
@@ -209,6 +211,9 @@
                return EXIT_FAILURE;
        }
 
+       if ((_server_key = getenv(NFTLB_SERVER_KEY_VAR)) != NULL && 
strlen(_server_key) > 0)
+               server_set_key(_server_key);
+
        tools_log_set_level(loglevel);
        tools_log_set_output(logoutput);
 

Reply via email to