GitHub user matti opened a pull request:
https://github.com/apache/incubator-cordova-weinre/pull/10
Supports running server behind a proxy, such as Heroku Cedar
This checks if proxy headers are set and uses those instead of request
object, that will return an internal IP.
(Signing Apache CCLA is in the works, just creating this pull request here
so that ppl can find the fix)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/AppGyver/incubator-cordova-weinre
support_for_proxies
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-cordova-weinre/pull/10.patch
----
commit 393b6b2a9af0e0a181504db3b5e1b87c3860b152
Author: Matti Paksula <[email protected]>
Date: 2012-09-17T06:06:44-07:00
Resolve remoteAddress from headers if set, or from the request
----