mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
only display warning if not started as wsgi
This commit is contained in:
parent
820691ca53
commit
69f85a0bdf
1 changed files with 16 additions and 13 deletions
|
@ -30,9 +30,10 @@ Take a look at the class ``BaseAuth`` if you want to implement your own.
|
|||
"""
|
||||
|
||||
import hashlib
|
||||
import os
|
||||
import threading
|
||||
import time
|
||||
from typing import Sequence, Set, Tuple, Union, final
|
||||
from typing import List, Sequence, Set, Tuple, Union, final
|
||||
|
||||
from radicale import config, types, utils
|
||||
from radicale.log import logger
|
||||
|
@ -71,6 +72,8 @@ def load(configuration: "config.Configuration") -> "BaseAuth":
|
|||
elif _type == "denyall":
|
||||
logger.warning("All user authentication is blocked by: '[auth] type=denyall'")
|
||||
elif _type in INSECURE_IF_NO_LOOPBACK_TYPES:
|
||||
sgi = os.environ.get('SERVER_GATEWAY_INTERFACE') or None
|
||||
if not sgi:
|
||||
hosts: List[Tuple[str, int]] = configuration.get("server", "hosts")
|
||||
localhost_only = True
|
||||
address_lo = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue