Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/vllm_router/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def validate_url(url: str) -> bool:
regex = re.compile(
r"^(http|https)://" # Protocol
r"(([a-zA-Z0-9_-]+\.)+[a-zA-Z]{2,}|" # Domain name
r"[a-zA-Z0-9_-]+|" # single-label
r"localhost|" # Or localhost
r"\d{1,3}(\.\d{1,3}){3})" # Or IPv4 address
r"(:\d+)?" # Optional port
Expand Down