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

Using local ip address when making a request #809

Open
sergeysolovev opened this issue Sep 10, 2024 · 3 comments
Open

Using local ip address when making a request #809

sergeysolovev opened this issue Sep 10, 2024 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@sergeysolovev
Copy link

Haven’t found this in the docs, is it possible to specify a local ip address (or NIC) when making a request? Would be lovely to have this feature

@algesten
Copy link
Owner

Hm…. We're just using Rust std TcpStream::connect, wonder if there is some way to do this in Rust?

@sergeysolovev
Copy link
Author

Looks like it’s possible but idk how exactly, at least reqwest have this option https://docs.rs/reqwest/latest/reqwest/blocking/struct.ClientBuilder.html#method.local_address

@algesten
Copy link
Owner

This is probably related to #547 – i.e. ideally we find a lightweight crate that exposes these functions under a feature flag.

@algesten algesten added the help wanted Extra attention is needed label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants