mirror of
https://github.com/iv-org/invidious.git
synced 2025-12-25 07:08:30 -06:00
improve
This commit is contained in:
parent
a48e6ca65b
commit
2304b5abf0
@ -326,12 +326,13 @@ class Config
|
|||||||
puts "Config (Hint): Remove the port from your domain: ':#{port}'"
|
puts "Config (Hint): Remove the port from your domain: ':#{port}'"
|
||||||
exit(1)
|
exit(1)
|
||||||
end
|
end
|
||||||
if scheme = parsed_domain.scheme.presence
|
if (path_items = parsed_domain.path.split("/")).size > 1
|
||||||
puts "Config (Hint): Remove the scheme from your domain: '#{scheme}'"
|
path = path_items[1..].join("/")
|
||||||
|
puts "Config (Hint): Remove the path from your domain: '/#{path}'"
|
||||||
exit(1)
|
exit(1)
|
||||||
end
|
end
|
||||||
if host = parsed_domain.host.presence
|
if scheme = parsed_domain.scheme.presence
|
||||||
puts "Config (Hint): Did you mean #{host}?"
|
puts "Config (Hint): Remove the scheme from your domain: '#{scheme}://'"
|
||||||
exit(1)
|
exit(1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user