openbsd-ports/www/ruby-passenger/patches/patch-helper-scripts_prespawn
jeremy 99dd8c2311 Update passenger to 4.0.44. Update the nginx version used by
passenger standalone to 1.4.7.

Thanks to Frank Groeneveld for feedback and testing.
2014-06-24 21:45:06 +00:00

19 lines
429 B
Plaintext

$OpenBSD: patch-helper-scripts_prespawn,v 1.2 2014/06/24 21:45:06 jeremy Exp $
Just because you can listen on 0.0.0.0 does not mean you can
connect to it.
--- helper-scripts/prespawn.orig Thu May 29 05:13:25 2014
+++ helper-scripts/prespawn Thu Jun 5 09:02:32 2014
@@ -80,7 +80,9 @@ class PrespawnLocation
end
def request_host
- @uri.host
+ h = @uri.host
+ h = '127.0.0.1' if h == '0.0.0.0'
+ h
end
def socket