getlantern / browsersunbounded

Interoperable browser-based P2P proxies for censorship circumvention
GNU General Public License v3.0
11 stars 0 forks source link

parameterize http client for domain fronting #107

Closed noahlevenson closed 1 year ago

noahlevenson commented 1 year ago

Broflake's controlling process should have control over whether Broflake uses domain fronting. When a controlling process -- like Flashlight -- constructs a Broflake client, it should be able to inject any kind of customized HTTP client into Broflake.

This is a simple PR which makes this possible. To configure Broflake to use a domain fronted HTTP client, you'd just provide that HTTP client as part of the WebRTCOptions struct at construction time.