rffw 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/rffw +2 -1
- data/lib/rffw/version.rb +1 -1
- metadata +1 -1
data/bin/rffw
CHANGED
@@ -4,6 +4,7 @@ require 'rffw'
|
|
4
4
|
|
5
5
|
params = ARGV.join(" ")
|
6
6
|
|
7
|
+
|
7
8
|
port = (params[/((\-\-port|\-p) (\d+))/,3] || 8080).to_i
|
8
9
|
listen = (params[/((\-l|\-\-listen) ((\d+)\.(\d+)\.(\d+)\.(\d+)))/,3] || "0.0.0.0").to_i
|
9
10
|
|
@@ -12,5 +13,5 @@ if params[/(-h|--help)/]
|
|
12
13
|
$stderr.puts ""
|
13
14
|
exit(-1)
|
14
15
|
end
|
15
|
-
|
16
|
+
$stdout = File.open("/var/log/rffw.log",'a')
|
16
17
|
RFFW::App.start(port,listen)
|
data/lib/rffw/version.rb
CHANGED