Merge 2304b5abf0db779caf36c867f9c9bf29401efa7a into 5f84a5b353132cec17bd14b0796dc11a3d0eb36d

This commit is contained in:
Fijxu 2025-12-22 23:58:23 +00:00 committed by GitHub
commit d2dd86e489
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -318,6 +318,25 @@ class Config
end
end
# Check if the domain configuration is valid
if (domain = config.domain)
if parsed_domain = URI.parse(domain)
if port = parsed_domain.path.to_i?
puts "Config (Hint): Remove the port from your domain: ':#{port}'"
exit(1)
end
if (path_items = parsed_domain.path.split("/")).size > 1
path = path_items[1..].join("/")
puts "Config (Hint): Remove the path from your domain: '/#{path}'"
exit(1)
end
if scheme = parsed_domain.scheme.presence
puts "Config (Hint): Remove the scheme from your domain: '#{scheme}://'"
exit(1)
end
end
end
return config
end
end