I have this same issue. but my version of node is 0.8.14 and this createConnection has changed a lot. If you can, then please suggest me what changes this version requires, so that request is sent through the actual ip.. and not from the main ip. Thanks in advance.
On Monday, 7 February 2011 19:17:32 UTC+5:30, Daniel Baulig wrote: > > Am 07.02.2011 10:59, schrieb Kenateo: > > Cool, your my men. I will test it. Is this patch for version 0.3.8 > > unstable? A patch for the stable version 0.2.6 would be cool too. > > > > On 6 Feb., 21:31, Daniel Baulig<[email protected]> wrote: > >> Just a small addition: If you want to rather use the createClient and > >> client.request Methods, you can do so, by passing a third parameter to > >> createClient which must be the string representation of the IP address > >> of the local interface to bind to, eg: > >> > >> //CODE > >> > >> var client = http.createClient(80, 'www.google.com', '198.51.100.23'); > >> > >> var request = client.request('POST', '/'); > >> request.write('Hello, Google!'); > >> request.end(); > >> > >> // END CODE > >> > >> Best regards, > >> Daniel > > The patch was based off of the current Github master branch, which > basicly is 0.3.8 EXCEPT, that it's already versinoed 4.0 (see latest > commit on node/master > > https://github.com/DanielBaulig/node/commit/30f24bb2df212843bc5ba3b8019b2830837dc0ce). > > > However, rebasing the commit onto 0.3.8 is trivial and should run > cleanly without conflicts. > > I rebased the patch onto 0.2.6 stable aswell, as you wished. You can get > the commit in the v.0.2.6-local-bind branch in my repository: > > https://github.com/DanielBaulig/node/commits/v.0.2.6-local-bind > > Rudimentary tests worked just fine. I did not test it's interaction with > HTTPS which is still incorporated in regular HTTP in this version, but > it *should* work. > > Best regards, > Daniel > > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
