public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <git@ipfire.org>
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. f1042a5d4401ff6feb16eb18f1fcd48936e8c878
Date: Mon, 11 Mar 2019 09:56:15 +0000	[thread overview]
Message-ID: <20190311095616.5CC7084FDD4@people01.i.ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 8523 bytes --]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".

The branch, next has been updated
       via  f1042a5d4401ff6feb16eb18f1fcd48936e8c878 (commit)
       via  8288c0394bb96f5aa3878ea86c05c2d92d677347 (commit)
       via  04f9321955606822aad7719fed4e80e26a1f82f9 (commit)
       via  31672dc8bdb223ebf425ff96be64318f2d68e0d7 (commit)
       via  4eb23a91987a39c504e10d96d89bd1de46f9c0fe (commit)
       via  820ab96c6927c4e3ecbbe2df1342b635cc598ce7 (commit)
      from  199db95a705e059972d34b578b55606a65851904 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f1042a5d4401ff6feb16eb18f1fcd48936e8c878
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Mon Mar 11 09:54:19 2019 +0000

    core129: Ship updated dhcp.cgi
    
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

commit 8288c0394bb96f5aa3878ea86c05c2d92d677347
Merge: 04f932195 31672dc8b
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Mon Mar 11 09:53:56 2019 +0000

    Merge remote-tracking branch 'ms/dhcp' into next

commit 04f9321955606822aad7719fed4e80e26a1f82f9
Author: Peter Müller <peter.mueller(a)ipfire.org>
Date:   Fri Mar 8 19:17:00 2019 +0000

    Tor WebUI: drop relay bandwith options < 1 MBit/s
    
    Tor requires at least 1 MBit/s in order to participate.
    
    Fixes #12001
    
    Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org>
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

commit 31672dc8bdb223ebf425ff96be64318f2d68e0d7
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Tue Feb 26 11:02:56 2019 +0000

    DHCP: Fix error when editing a newly added fixed lease
    
    They key was remembered but then the array was sorted which resulted
    the key showing a wrong line.
    
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

commit 4eb23a91987a39c504e10d96d89bd1de46f9c0fe
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Tue Feb 26 10:18:33 2019 +0000

    DHCP: Restart server in background
    
    This allows for the CGI to return quicker.
    
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

commit 820ab96c6927c4e3ecbbe2df1342b635cc598ce7
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Tue Feb 26 10:16:21 2019 +0000

    DHCP: Escape slashes in filename
    
    Fixes: #12006
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

-----------------------------------------------------------------------

Summary of changes:
 config/rootfiles/core/129/filelists/files |  1 +
 html/cgi-bin/dhcp.cgi                     | 21 ++++++++++++++++-----
 html/cgi-bin/tor.cgi                      | 11 ++++-------
 lfs/tor                                   |  2 +-
 4 files changed, 22 insertions(+), 13 deletions(-)

Difference in files:
diff --git a/config/rootfiles/core/129/filelists/files b/config/rootfiles/core/129/filelists/files
index 71abbb6be..3ab81b796 100644
--- a/config/rootfiles/core/129/filelists/files
+++ b/config/rootfiles/core/129/filelists/files
@@ -5,6 +5,7 @@ etc/rc.d/init.d/firewall
 etc/rc.d/init.d/network
 etc/rc.d/init.d/networking/red.up/50-ipsec
 srv/web/ipfire/cgi-bin/credits.cgi
+srv/web/ipfire/cgi-bin/dhcp.cgi
 srv/web/ipfire/cgi-bin/index.cgi
 srv/web/ipfire/cgi-bin/netovpnsrv.cgi
 srv/web/ipfire/cgi-bin/proxy.cgi
diff --git a/html/cgi-bin/dhcp.cgi b/html/cgi-bin/dhcp.cgi
index 3eb5349a9..675d80012 100644
--- a/html/cgi-bin/dhcp.cgi
+++ b/html/cgi-bin/dhcp.cgi
@@ -446,15 +446,17 @@ if ($dhcpsettings{'ACTION'} eq $Lang::tr{'add'}.'2') {
 	    &General::log($Lang::tr{'fixed ip lease added'});
 
 	    # Enter edit mode
-	    $dhcpsettings{'KEY2'} = $key;
+	    $dhcpsettings{'KEY2'} = 0;
 	} else {
 	    @current2[$dhcpsettings{'KEY2'}] = "$dhcpsettings{'FIX_MAC'},$dhcpsettings{'FIX_ADDR'},$dhcpsettings{'FIX_ENABLED'},$dhcpsettings{'FIX_NEXTADDR'},$dhcpsettings{'FIX_FILENAME'},$dhcpsettings{'FIX_ROOTPATH'},$dhcpsettings{'FIX_REMARK'}\n";
 	    $dhcpsettings{'KEY2'} = '';       # End edit mode
 	    &General::log($Lang::tr{'fixed ip lease modified'});
+
+	    # sort newly added/modified entry
+	    &sortcurrent2;
 	}
 
         #Write changes to dhcpd.conf.
-        &sortcurrent2;    # sort newly added/modified entry
         &buildconf;       # before calling buildconf which use fixed lease file !
     }
 }
@@ -1272,7 +1274,7 @@ sub buildconf {
 	    print FILE ", " . $dhcpsettings{"WINS2_${itf}"}                            if ($dhcpsettings{"WINS2_${itf}"});
 	    print FILE ";\n"                                                           if ($dhcpsettings{"WINS1_${itf}"});
 	    print FILE "\tnext-server " . $dhcpsettings{"NEXT_${itf}"} . ";\n" if ($dhcpsettings{"NEXT_${itf}"});
-	    print FILE "\tfilename \"" . $dhcpsettings{"FILE_${itf}"} . "\";\n" if ($dhcpsettings{"FILE_${itf}"});
+	    print FILE "\tfilename \"" . &EscapeFilename($dhcpsettings{"FILE_${itf}"}) . "\";\n" if ($dhcpsettings{"FILE_${itf}"});
 	    print FILE "\tdefault-lease-time " . ($dhcpsettings{"DEFAULT_LEASE_TIME_${itf}"} * 60). ";\n";
 	    print FILE "\tmax-lease-time "     . ($dhcpsettings{"MAX_LEASE_TIME_${itf}"} * 60)    . ";\n";
 	    print FILE "\tallow bootp;\n" if ($dhcpsettings{"ENABLEBOOTP_${itf}"} eq 'on');
@@ -1325,7 +1327,7 @@ sub buildconf {
 	    print FILE "\thardware ethernet $temp[0];\n";
 	    print FILE "\tfixed-address $temp[1];\n";
 	    print FILE "\tnext-server $temp[3];\n"          if ($temp[3]);
-	    print FILE "\tfilename \"$temp[4]\";\n"         if ($temp[4]);
+	    print FILE "\tfilename \"" . &EscapeFilename($temp[4]) . "\";\n" if ($temp[4]);
 	    print FILE "\toption root-path \"$temp[5]\";\n" if ($temp[5]);
 	    print FILE "}\n";
 	    $key++;
@@ -1335,7 +1337,7 @@ sub buildconf {
     close FILE;
     if ( $dhcpsettings{"ENABLE_GREEN"} eq 'on' || $dhcpsettings{"ENABLE_BLUE"} eq 'on' ) {system '/usr/local/bin/dhcpctrl enable >/dev/null 2>&1';}
     else {system '/usr/local/bin/dhcpctrl disable >/dev/null 2>&1';}
-    system '/usr/local/bin/dhcpctrl restart >/dev/null 2>&1';
+    system '/usr/local/bin/dhcpctrl restart >/dev/null 2>&1 &';
 }
 
 #
@@ -1392,3 +1394,12 @@ sub IsUsedNewOptionDefinition {
     }
     return 0;
 }
+
+sub EscapeFilename($) {
+	my $filename = shift;
+
+	# Replace all single / by \/
+	$filename =~ s/\//\\\//g;
+
+	return $filename;
+}
diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi
index b17db01a2..71da66666 100644
--- a/html/cgi-bin/tor.cgi
+++ b/html/cgi-bin/tor.cgi
@@ -2,7 +2,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2013  IPFire Team  <info(a)ipfire.org>                          #
+# Copyright (C) 2013-2019  IPFire Team  <info(a)ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -36,10 +36,10 @@ my @dummy = ( ${Header::colouryellow} );
 undef (@dummy);
 
 my @bandwidth_limits = (
-	1000 * 1024, # 1G
+	1000 * 1024, # 1 GBit/s
 	 500 * 1024,
 	 200 * 1024,
-	 100 * 1024, # 100M
+	 100 * 1024, # 100 MBit/s
 	  64 * 1024,
 	  50 * 1024,
 	  25 * 1024,
@@ -49,10 +49,7 @@ my @bandwidth_limits = (
 	   8 * 1024,
 	   4 * 1024,
 	   2 * 1024,
-	       1024, # 1M
-	        512,
-	        256,
-	        160
+	       1024  # 1 MBit/s
 );
 my @accounting_periods = ('daily', 'weekly', 'monthly');
 
diff --git a/lfs/tor b/lfs/tor
index 4e38a3e7c..384b1b213 100644
--- a/lfs/tor
+++ b/lfs/tor
@@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = tor
-PAK_VER    = 33
+PAK_VER    = 34
 
 DEPS       = ""
 


hooks/post-receive
--
IPFire 2.x development tree

                 reply	other threads:[~2019-03-11  9:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190311095616.5CC7084FDD4@people01.i.ipfire.org \
    --to=git@ipfire.org \
    --cc=ipfire-scm@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox