mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +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 datetime
|
||||
import daemon
|
||||
import functools
|
||||
import ipaddress
|
||||
import logging
|
||||
import logging.handlers
|
||||
@@ -444,6 +445,7 @@ class Lease(object):
|
||||
return "localdomain"
|
||||
|
||||
@staticmethod
|
||||
@functools.cache
|
||||
def read_settings(filename):
|
||||
settings = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user