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

feat(channel): Add local_address as an option Endpoint builder #1567

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

jparris
Copy link
Contributor

@jparris jparris commented Nov 8, 2023

Motivation

I need to be able to set the local address of a Channel. This is the source IP address the Channel will be coming from. Currently Tonic's Channel builder doesn't expose a way to do this.

Solution

Add local_address to Endpoint builder.

@jparris jparris marked this pull request as draft November 8, 2023 21:31
@jparris jparris force-pushed the jparris/local_address branch from 53f0039 to 9a59e0d Compare September 4, 2024 18:06
@jparris jparris force-pushed the jparris/local_address branch 2 times, most recently from 556e3d5 to 4cb2f2a Compare December 5, 2024 23:04
@jparris jparris marked this pull request as ready for review December 5, 2024 23:04
@jparris jparris force-pushed the jparris/local_address branch from 4cb2f2a to 65def4e Compare January 15, 2025 17:05
@jparris
Copy link
Contributor Author

jparris commented Jan 15, 2025

@tottoto can you take a look at this PR.

tonic/src/transport/channel/endpoint.rs Outdated Show resolved Hide resolved
tonic/src/transport/channel/endpoint.rs Outdated Show resolved Hide resolved
tonic/src/transport/channel/endpoint.rs Outdated Show resolved Hide resolved
tonic/src/transport/channel/endpoint.rs Outdated Show resolved Hide resolved
@jparris jparris force-pushed the jparris/local_address branch from 20b0714 to 4341f0d Compare January 16, 2025 21:31
@jparris jparris requested a review from tottoto January 16, 2025 21:32
@tottoto tottoto changed the title Adds local_address as an option Endpoint builder. feat(channel): Add local_address as an option Endpoint builder Jan 16, 2025
@tottoto tottoto enabled auto-merge January 16, 2025 22:21
@tottoto tottoto added this pull request to the merge queue Jan 16, 2025
Merged via the queue into hyperium:master with commit 6839a39 Jan 16, 2025
17 checks passed
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.

2 participants