mirror of
https://github.com/cmur2/openvpn-status-web.git
synced 2024-12-22 12:54:24 +01:00
Add usage output
This commit is contained in:
parent
91708da841
commit
db7ffc7878
6
status.rb
Normal file → Executable file
6
status.rb
Normal file → Executable file
@ -68,4 +68,8 @@ class OpenVPNStatusWeb
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Rack::Handler::Mongrel.run OpenVPNStatusWeb.new(ARGV[0], ARGV[1]), :Host => ARGV[2], :Port => ARGV[3]
|
if ARGV.length != 4
|
||||||
|
puts "Usage: status.rb vpn-name status-log listen-host listen-port"
|
||||||
|
else
|
||||||
|
Rack::Handler::Mongrel.run OpenVPNStatusWeb.new(ARGV[0], ARGV[1]), :Host => ARGV[2], :Port => ARGV[3]
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user