Fix whitelist auth check for localhost
This commit is contained in:
parent
65775bbc59
commit
88363423f4
|
@ -256,7 +256,7 @@ class Travis::Api::App
|
|||
return unless uri = Addressable::URI.parse(target_origin)
|
||||
if uri.host =~ /\A(.+\.)?travis-ci\.(com|org)\Z/
|
||||
uri.scheme == 'https'
|
||||
elsif uri == 'localhost' or uri == '127.0.0.1'
|
||||
elsif uri.host == 'localhost' or uri.host == '127.0.0.1'
|
||||
uri.port > 1023
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user