Skip to content

Commit

Permalink
refactor: Update BUNKERWEB_STATIC_INSTANCES_RX regex pattern to be mo…
Browse files Browse the repository at this point in the history
…re precise
  • Loading branch information
TheophileDiot committed Aug 8, 2024
1 parent 247cf2b commit e85ed09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/gen/save_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
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")))

Expand Down

0 comments on commit e85ed09

Please sign in to comment.