bepass-org / bepass

A simple DPI bypass tool written in go
MIT License
342 stars 71 forks source link

Disable CGO where possible #30

Closed markpash closed 10 months ago

markpash commented 10 months ago

The included Makefile is used to build the standard cli app and the gui version. The cli app can be compiled statically by setting CGO_ENABLED=0. This improves compatibility of the result binary. The commands for both build and release targets can be modified like: CGO_ENABLED=0 go build -o $(BUILD_DIR)/bepass cmd/cli/main.go

The GUI needs cgo, so this can't be applied to it.

DanielcoderX commented 10 months ago

Hi, Markpash. I'm gonna try disabling CGO as you said. Thanks.