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

Support binding to a source address. #518

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

miracle2k
Copy link
Contributor

I want to set the source ip address for a request. I see that there is a TODO in the code. This seems to work for me, which seems almost too easy. Is there something else?

@njsmith
Copy link
Member

njsmith commented May 5, 2018

There's also an open issue at #275, which has a bit more discussion of the subtleties here. This works in simple cases, but it forces a choice of IPv4/IPv6 (whichever one you use as the source), and there's some problem around picking a port given that we might be making multiple connections... let's move the discussion there.

@codecov
Copy link

codecov bot commented May 8, 2018

Codecov Report

Merging #518 (08fa141) into master (1c15500) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #518   +/-   ##
=======================================
  Coverage   98.94%   98.94%           
=======================================
  Files         113      113           
  Lines       16919    16919           
  Branches     3050     3050           
=======================================
  Hits        16741    16741           
  Misses        123      123           
  Partials       55       55           
Files Changed Coverage Δ
trio/_highlevel_ssl_helpers.py 100.00% <ø> (ø)

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

Successfully merging this pull request may close these issues.

3 participants