lib/zold/remotes.rb in zold-0.29.28 vs lib/zold/remotes.rb in zold-0.29.29
- old
+ new
@@ -314,9 +314,10 @@
end
def assert_host_info(host, port)
raise 'Host can\'t be nil' if host.nil?
raise 'Host can\'t be empty' if host.empty?
+ raise 'Host IP is wrong, can\'t be all zeros' if host == '0.0.0.0'
raise 'Port can\'t be nil' if port.nil?
raise 'Port has to be of type Integer' unless port.is_a?(Integer)
raise 'Port can\'t be zero' if port.zero?
raise 'Port can\'t be negative' if port.negative?
raise 'Port can\'t be over 65536' if port > 0xffff