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

Set ServerName (SNI). #377

Open
ip-rw opened this issue Aug 26, 2022 · 4 comments
Open

Set ServerName (SNI). #377

ip-rw opened this issue Aug 26, 2022 · 4 comments

Comments

@ip-rw
Copy link

ip-rw commented Aug 26, 2022

I think there's a pretty strong argument for setting the ServerName (SNI) to the value of --hostname.

It's pretty much standard to set the ServerName in the TLS ClientHello when a hostname is requested. Regardless, being able to set the SNI is something that's been requested a few times.

The changes are straightforward, won't require a new command line switch and don't appear to be beyond the scope of things (especially seeing as we have --hostname already)

I've submitted a pull request here: #376

@clerie
Copy link

clerie commented Sep 28, 2022

I would consider this as a bug actually, just based on how I expect an https stack to work.

But I think we should add a separate switch to manually override the SNI again. So domain fronting will still be possible.

@ip-rw
Copy link
Author

ip-rw commented Oct 11, 2022

I would consider this as a bug actually, just based on how I expect an https stack to work.

Yes I rather agree.

But I think we should add a separate switch to manually override the SNI again. So domain fronting will still be possible.

Have updated my fork:

--sni, Override the ServerName when using TLS (defaults to the 
hostname).

@clerie
Copy link

clerie commented Oct 11, 2022

Great, thank you. Let's hope it gets upstreamed soon!

@jpillora
Copy link
Owner

merged, i just need to release, though i want to release with go 1.19 but need to fix tests #390

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

3 participants