Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bind to interface #52

Open
cannotcode opened this issue Dec 9, 2014 · 2 comments
Open

bind to interface #52

cannotcode opened this issue Dec 9, 2014 · 2 comments

Comments

@cannotcode
Copy link

Hello,

Running spdyproxy daemon with the option "--localAddress" doesn't work. It will bind to 0.0.0.0.
I've tried with "--localAddress lo", "--localAddress eth1:1" (virtual).

@igrigorik
Copy link
Owner

Current option enables binding to a particular IP for outgoing requests, the server by default listens on all interfaces. I think that's a simple improvement though: https://github.com/igrigorik/node-spdyproxy/blob/master/bin/spdyproxy#L129 ... just need to provide the localAddress option to listen() [1].

[1] http://nodejs.org/api/http.html#http_server_listen_port_hostname_backlog_callback

@cannotcode
Copy link
Author

Thanks. I got it to work with changing it as suggested to proxy.listen(opts.port,'[ip address]');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants