ipsn / go-libtor

Self-contained Tor from Go
BSD 3-Clause "New" or "Revised" License
548 stars 47 forks source link

Bine's process.Process interface has new method #4

Closed cretz closed 5 years ago

cretz commented 5 years ago

Heads up, I added a new method EmbeddedControlConn to process.Process. This was done because now, in Tor >= 0.3.5.x, there is a feature that lets us use a native socket created by Tor instead of opening our own (ref tor_api.h's tor_main_configuration_setup_control_socket). Note, that specific feature doesn't work on Windows due to Go's lack of Windows support for net.FileConn. For older versions of Tor (such as this one and the default used by Bine, 0.3.5.x), just return nil, ErrControlConnUnsupported.

karalabe commented 5 years ago

Thanks for the heads up. Will add when I fix the upstream build errors.