mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
refactor: Update BUNKERWEB_STATIC_INSTANCES_RX regex pattern to be more precise
This commit is contained in:
parent
247cf2b215
commit
e85ed0940a
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ from API import API # type: ignore
|
|||
CUSTOM_CONF_RX = re_compile(
|
||||
r"^(?P<service>[0-9a-z\.-]*)_?CUSTOM_CONF_(?P<type>HTTP|SERVER_STREAM|STREAM|DEFAULT_SERVER_HTTP|SERVER_HTTP|MODSEC_CRS|MODSEC|CRS_PLUGINS_BEFORE|CRS_PLUGINS_AFTER)_(?P<name>.+)$"
|
||||
)
|
||||
BUNKERWEB_STATIC_INSTANCES_RX = re_compile(r"(http://)?(?P<hostname>(?<![:@])\b[^:@\s]+\b)(:(?P<port>\d+))?")
|
||||
BUNKERWEB_STATIC_INSTANCES_RX = re_compile(r"(http://)?(?P<hostname>(?<![:])\b[^:\s]+\b)(:(?P<port>\d+))?")
|
||||
|
||||
LOGGER = setup_logger("Generator", getenv("CUSTOM_LOG_LEVEL", getenv("LOG_LEVEL", "INFO")))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue