Revision 3a83236d
Added by Dmitri Dolguikh over 7 years ago
test/global_settings_test.rb | ||
---|---|---|
assert_equal "http://localhost:3000/",
|
||
::Proxy::Settings::Global.new(:foreman_url => "http://localhost:3000/").foreman_url
|
||
end
|
||
|
||
def test_bind_host_is_normalized
|
||
assert_equal ['127.0.0.1'], ::Proxy::Settings::Global.new(:bind_host => '127.0.0.1').bind_host
|
||
assert_equal ['127.0.0.1'], ::Proxy::Settings::Global.new(:bind_host => ['127.0.0.1']).bind_host
|
||
end
|
||
end
|
Also available in: Unified diff
Fixes #18026 - proxy can listen on multiple arbitrary interfaces