Version 0.0.27 Fix for igmp protocol, do not use -m option. default tip

Mon, 30 Oct 2023 16:24:44 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 30 Oct 2023 16:24:44 +0100
changeset 14
654773d80b70
parent 13
06b03eeae540

Version 0.0.27 Fix for igmp protocol, do not use -m option.

sbin/mbse-firewall file | annotate | diff | comparison | revisions
--- a/sbin/mbse-firewall	Mon Feb 27 11:41:02 2023 +0100
+++ b/sbin/mbse-firewall	Mon Oct 30 16:24:44 2023 +0100
@@ -22,7 +22,7 @@
 # Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
 # ---------------------------------------------------------------------------
 
-MBSEFW_VERSION="0.0.26"
+MBSEFW_VERSION="0.0.27"
 
 # Sanity checks
 if [ "$(id -u)" != "0" ]; then
@@ -570,7 +570,13 @@
       fi
 
       # Protocol
-      [ -n "$3" ] && args+=("-p" "$3" "-m" "$3")
+      [ -n "$3" ] && {
+	if [ "$3" = "igmp" ]; then
+	  args+=("-p" "$3")
+	else
+      	  args+=("-p" "$3" "-m" "$3")
+	fi
+      }
 
       # Test for multiport
       multi=0

mercurial