+

Add patch to permit multiports firewall rule usage

Benjamin Renard [2014-02-07 16:17:08]
Add patch to permit multiports firewall rule usage
Filename
patches/permitmultiports
patches/series
diff --git a/patches/permitmultiports b/patches/permitmultiports
new file mode 100644
index 0000000..04e1ff0
--- /dev/null
+++ b/patches/permitmultiports
@@ -0,0 +1,13 @@
+Index: wifidog/src/conf.c
+===================================================================
+--- wifidog.orig/src/conf.c	2014-02-07 17:02:11.009806887 +0100
++++ wifidog/src/conf.c	2014-02-07 17:03:24.329807175 +0100
+@@ -528,7 +528,7 @@
+ 		port = leftover;
+ 		TO_NEXT_WORD(leftover, finished);
+ 		for (i = 0; *(port + i) != '\0'; i++)
+-			if (!isdigit((unsigned char)*(port + i)))
++			if (!isdigit((unsigned char)*(port + i)) && *(port + i)!=':')
+ 				all_nums = 0; /*< No longer only digits */
+ 		if (!all_nums) {
+ 			debug(LOG_ERR, "Invalid port %s", port);
diff --git a/patches/series b/patches/series
new file mode 100644
index 0000000..83c2257
--- /dev/null
+++ b/patches/series
@@ -0,0 +1 @@
+permitmultiports
ViewGit