Skip to content

Commit

Permalink
fix: caddy forward proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
jonssonyan committed Sep 14, 2024
1 parent fd51dfa commit b1755a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin

caddy_version=

# Error handling function
handle_error() {
echo "$1"
Expand Down Expand Up @@ -68,7 +70,7 @@ cross_compile_caddy() {

# Set CGO_ENABLED and environment variables for xcaddy build
CGO_ENABLED=0 GOOS=$GOOS GOARCH=$GOARCH GOARM=$GOARM \
xcaddy build --output "$XCADDY_OUT" \
xcaddy build "${caddy_version}" --output "$XCADDY_OUT" \
--with github.com/caddyserver/forwardproxy=github.com/klzgrad/forwardproxy@naive ||
echo "Failed to build Caddy for $GOOS/$GOARCH/$GOARM. Skipping."

Expand Down

0 comments on commit b1755a4

Please sign in to comment.