imgk / caddy-trojan

Caddy module for trojan proxy
GNU General Public License v3.0
204 stars 46 forks source link

本插件使用Caddy master源码编译报错。 #41

Closed lxhao61 closed 2 years ago

lxhao61 commented 2 years ago

xcaddy build master --with github.com/imgk/caddy-trojan image

cattyhouse commented 2 years ago

我测试过, 没有问题 (才发现作者修了什么)

sw_vers
ProductName:            macOS
ProductVersion:         13.0.1
BuildVersion:           22A400
go version
go version go1.19.3 darwin/arm64
go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest
CGO_ENABLED=0 GOARCH=arm64 GOOS=linux XCADDY_GO_BUILD_FLAGS="-ldflags '-s -w'" xcaddy build master --output caddy-trojan-nocgo-linux-aarch64 --with github.com/imgk/caddy-trojan
file caddy-trojan-nocgo-linux-aarch64
caddy-trojan-nocgo-linux-aarch64: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, Go BuildID=xxx, stripped
la caddy-trojan-nocgo-linux-aarch64
-rwxr-xr-x@ 1 -- --    38M 17 Nov -- caddy-trojan-nocgo-linux-aarch64
./caddy-trojan-nocgo-linux-aarch64 version
v2.6.3-0.20221114163802-ee7c92ec9b57 h1:iKqZ5wUNCMvcws5I4afu98V9iRyw97Xol+A+feuquqY=
./caddy-trojan-nocgo-linux-aarch64 build-info | grep trojan
dep     github.com/imgk/caddy-trojan    v0.0.0-20221116123244-8d46fda7c335      h1:xbQ4cmFIM0/UepSZnAkU5gn1hdb9cbS6N0S565Q5lNY=
imgk commented 2 years ago

我没有修改什么,就是把 go.mod 这个文件重做了一下😂