make server.rb have a small guard clause
This commit is contained in:
parent
b07e6dfc55
commit
cb27eaa8d6
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,11 @@ require './http.rb'
|
||||||
require './fake_tunnel_connector.rb'
|
require './fake_tunnel_connector.rb'
|
||||||
|
|
||||||
port = ARGV[0]
|
port = ARGV[0]
|
||||||
|
if ARGV.count == 0
|
||||||
|
puts "Please provide a port for the server to listen on."
|
||||||
|
exit
|
||||||
|
end
|
||||||
|
|
||||||
cert_path = './certificate.pem'
|
cert_path = './certificate.pem'
|
||||||
key_path = './private_key.pem'
|
key_path = './private_key.pem'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue