diff --git a/moonraker/authorization.py b/moonraker/authorization.py index 47e53bf..41735b1 100644 --- a/moonraker/authorization.py +++ b/moonraker/authorization.py @@ -208,7 +208,7 @@ class Authorization: else: # Check to see if the origin contains an IP that matches a # current trusted connection - match = re.search(r"^https?://([^/]+)$", origin) + match = re.search(r"^https?://([^/:]+)", origin) if match is not None: ip = match.group(1) try: