mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
unbound-dhcp-leases-bridge: Read configuration only once
This saves some resources when we re-read the same configuration file too often. Suggested-by: Anthony Heading <ajrh@ajrh.net> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
6d6e7949cf
commit
091cb62ada
@@ -22,6 +22,7 @@
|
|||||||
import argparse
|
import argparse
|
||||||
import datetime
|
import datetime
|
||||||
import daemon
|
import daemon
|
||||||
|
import functools
|
||||||
import ipaddress
|
import ipaddress
|
||||||
import logging
|
import logging
|
||||||
import logging.handlers
|
import logging.handlers
|
||||||
@@ -444,6 +445,7 @@ class Lease(object):
|
|||||||
return "localdomain"
|
return "localdomain"
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@functools.cache
|
||||||
def read_settings(filename):
|
def read_settings(filename):
|
||||||
settings = {}
|
settings = {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user