mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Copy configuration before modifying
This commit is contained in:
parent
df5eb1bfcc
commit
8a817cf402
1 changed files with 5 additions and 0 deletions
|
@ -32,6 +32,7 @@ import socketserver
|
|||
import ssl
|
||||
import sys
|
||||
import wsgiref.simple_server
|
||||
from configparser import ConfigParser
|
||||
from urllib.parse import unquote
|
||||
|
||||
from radicale import Application
|
||||
|
@ -199,6 +200,10 @@ class RequestHandler(wsgiref.simple_server.WSGIRequestHandler):
|
|||
def serve(configuration):
|
||||
"""Serve radicale from configuration."""
|
||||
logger.info("Starting Radicale")
|
||||
# Copy configuration before modifying
|
||||
config_copy = ConfigParser()
|
||||
config_copy.read_dict(configuration)
|
||||
configuration = config_copy
|
||||
configuration["internal"]["internal_server"] = "True"
|
||||
|
||||
# Create collection servers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue