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

allows consumer to create customised types.Addr compatible types #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Jorropo
Copy link

@Jorropo Jorropo commented Jun 25, 2022

This is needed to make https://github.com/Jorropo/go-pin-argente work.

I have to return a precise [<ip>]:1 format in my addr.String method (that because quic-go REALLY wants to do SNI and I cannot just give it the public key I want to use). (don't look at the :1 too much, it's just to make the SNI IP parser happy, I told it all connections happen on port 1 even tho no such thing exists)

However making my custom address type broke ironwood, this patch allows my custom address type to convert itself into ironwood friendly form.

@Jorropo Jorropo changed the title allows consumer to create customiser types.Addr compatible types allows consumer to create customised types.Addr compatible types Jun 25, 2022
@Jorropo Jorropo force-pushed the friendlierAddr branch 2 times, most recently from 6184020 to 144af57 Compare June 25, 2022 22:48
This is needed to make https://github.com/Jorropo/go-pin-argente work.

I have to return a precise [<ip>]:1 format in my net.Addr.String method (that because quic-go REALLY wants to do SNI and I cannot just give it the public key I want to use). (don't look at the :1 too much, it's just to make the SNI IP parser happy, I told it all connections happen on port 1 even tho no such thing exists)

However making my custom address type broke ironwood, this patch allows my custom address type to convert itself into ironwood friendly form.
@Jorropo
Copy link
Author

Jorropo commented Jun 25, 2022

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.

1 participant