Closed uniqx closed 1 year ago
Sorry, this is not how it works.
Please familiarize yourself with Pluggable Transports and specifically, the v1 spec.
Besides that, you don't need to do any parsing of the bridge lines. Hand them over to Tor as-is. Tor will hand it over to the transport, the transport will know what to do.
Tor bridges are typically are configured using "bridge strings". I couldn't find the specification for this format but, Tor project also uses it in BridgeDB for passing bridge information to Tor Browser, so it's a quasi-standard at the very least. Here are some examples:
Using IPtProxy would be considerably more comfortable if it would support this format for starting proxies. Instead of letting all re-implement such a parser, or making them handle bridge configs manually. A dev friendly API could eg. look like this: