ipsn / go-libtor

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

WIP: Feat/macos #23

Closed Jorropo closed 3 years ago

Jorropo commented 3 years ago

Closes: #1 The goal is to support darwin 64 (amd and arm). I'm gonna add 32 bit if it works without any extra errors, else I'll not invest time in supporting 32 bits but luck may make it working on the first try. My goal is to support IOS 64 (and I'm using this one as a base.).

EDIT: I don't have the time to do 32 bits. EDIT 2: https://golang.org/doc/go1.15#darwin :

As announced in the Go 1.14 release notes, Go 1.15 drops support for 32-bit binaries on macOS, iOS, iPadOS, watchOS, and tvOS (the darwin/386 and darwin/arm ports). Go continues to support the 64-bit darwin/amd64 and darwin/arm64 ports.

I'll definitely not take the time to do darwin to 32 :)

Jorropo commented 3 years ago

@karalabe review pls ? :) It works : Capture d’écran du 2020-09-08 20-14-15 The bottom window (server) is an ssh into a mac mini. And this is running the example slightly tweaked (to print runtime.GOOS (that from there that "darwin" came)). I've checked other things (onion3, client, ...) and wasn't able to find something not working. And linux is still working (I havn't tested android but since I didn't touched these files at all, linux still working makes me confident about android working). EDIT: It need to make a darwin specifical version (go run build/wrap.go must be runned in OSX first, I'll do this tomorow)