unbound-dhcp-leases-bridge: handle PTR generation parameter

Message ID cf760e02-ba5f-d05e-16f9-d32bdd781cb5@ipfire.org
State Accepted
Commit 4a46575628378e447f6aec0771cc4cc0f2743a3a
Headers
Series unbound-dhcp-leases-bridge: handle PTR generation parameter |

Commit Message

Peter Müller July 15, 2019, 12:38 a.m. UTC
  Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Reported-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
 config/rootfiles/core/135/filelists/files | 1 +
 config/unbound/unbound-dhcp-leases-bridge | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/config/rootfiles/core/135/filelists/files b/config/rootfiles/core/135/filelists/files
index 780d4aef5..3d868d324 100644
--- a/config/rootfiles/core/135/filelists/files
+++ b/config/rootfiles/core/135/filelists/files
@@ -9,3 +9,4 @@  etc/rc.d/init.d/functions
 etc/rc.d/init.d/partresize
 etc/rc.d/init.d/unbound
 etc/sysctl.conf
+usr/sbin/unbound-dhcp-leases-bridge
diff --git a/config/unbound/unbound-dhcp-leases-bridge b/config/unbound/unbound-dhcp-leases-bridge
index a8cd837bb..64306bc9b 100644
--- a/config/unbound/unbound-dhcp-leases-bridge
+++ b/config/unbound/unbound-dhcp-leases-bridge
@@ -153,7 +153,7 @@  class UnboundDHCPLeasesBridge(object):
 				line = line.rstrip()
 
 				try:
-					enabled, ipaddr, hostname, domainname = line.split(",")
+					enabled, ipaddr, hostname, domainname, generateptr = line.split(",")
 				except:
 					log.warning("Could not parse line: %s" % line)
 					continue