fixing dashboard to ensure starts with forward slash, put back the server_header option to allow pinning

This commit is contained in:
Phillip Tarrant
2026-01-03 13:56:16 -06:00
parent 349c149335
commit 4c490e30cb
3 changed files with 16 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ import string
import json
from templates import html_templates
from wordlists import get_wordlists
from config import get_config
def random_username() -> str:
"""Generate random username"""
@@ -37,6 +38,9 @@ def random_email(username: str = None) -> str:
def random_server_header() -> str:
"""Generate random server header from wordlists"""
config = get_config()
if config.server_header:
return config.server_header
wl = get_wordlists()
return random.choice(wl.server_headers)