dgrr / http2

HTTP/2 implementation for fasthttp
Apache License 2.0
208 stars 35 forks source link

how do you have any domain names and not pre-specify the domain name? #30

Closed hiqsociety closed 2 years ago

hiqsociety commented 2 years ago

i would like it to be automatically detect incoming hostname so I dont have to WhiteList it. any domains at all. how do i do that with this?

https://github.com/dgrr/http2/blob/master/examples/autocert/main.go

i know i can comment out the whitelist host but i dunno how to make it pre-detect/pre-specify the incoming ctx.Request.Host()

dgrr commented 2 years ago

Hello. I have no idea. You should do that by using the Host header. But I think that's not something specific to http2.