make server.rb have a small guard clause

This commit is contained in:
kenna-bmcdevitt 2020-07-22 06:58:31 -05:00
parent b07e6dfc55
commit cb27eaa8d6

View file

@ -3,6 +3,11 @@ require './http.rb'
require './fake_tunnel_connector.rb'
port = ARGV[0]
if ARGV.count == 0
puts "Please provide a port for the server to listen on."
exit
end
cert_path = './certificate.pem'
key_path = './private_key.pem'