mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
parent
b1b0762270
commit
fc6e80a3cc
@ -114,7 +114,7 @@ CommandParser::CmdParser.new(ARGV) do
|
||||
exit(-1)
|
||||
end
|
||||
|
||||
if !%r/^(http|https):\/\//.match(options[:server_rpc])
|
||||
if !%r{^(http|https):\/\/}.match(options[:server_rpc])
|
||||
puts 'Wrong protocol specified. Only http or https allowed!'
|
||||
exit(-1)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user