juggernaut 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/juggernaut.rb +5 -1
- data/lib/juggernaut/server.rb +1 -1
- metadata +1 -1
data/lib/juggernaut.rb
CHANGED
@@ -4,7 +4,7 @@ require 'json'
|
|
4
4
|
$:.unshift(File.dirname(__FILE__))
|
5
5
|
|
6
6
|
module Juggernaut
|
7
|
-
VERSION = '0.5.
|
7
|
+
VERSION = '0.5.3'
|
8
8
|
|
9
9
|
class JuggernautError < StandardError #:nodoc:
|
10
10
|
end
|
@@ -104,6 +104,10 @@ module Juggernaut
|
|
104
104
|
|
105
105
|
# Port is mandatory
|
106
106
|
:port: 5001
|
107
|
+
|
108
|
+
# Defaults to value of :port. If you are doing port forwarding you'll need to configure this to the same
|
109
|
+
# value as :public_port in the juggernaut_hosts.yml file
|
110
|
+
# :public_port: 5001
|
107
111
|
|
108
112
|
EOF
|
109
113
|
|
data/lib/juggernaut/server.rb
CHANGED
@@ -95,7 +95,7 @@ module Juggernaut
|
|
95
95
|
|
96
96
|
if ln == POLICY_REQUEST
|
97
97
|
logger.debug "Sending crossdomain file"
|
98
|
-
send_data POLICY_FILE.gsub('PORT', options[:port].to_s)
|
98
|
+
send_data POLICY_FILE.gsub('PORT', (options[:public_port]||options[:port]).to_s)
|
99
99
|
close_connection_after_writing
|
100
100
|
return
|
101
101
|
end
|