mirror of
https://github.com/tale/headplane.git
synced 2026-08-13 07:06:51 +00:00
fix: patch tailscale to support a custom DERP port
This commit is contained in:
+8
-1
@@ -22,7 +22,14 @@ in
|
||||
buildPhase = ''
|
||||
export GOOS=js
|
||||
export GOARCH=wasm
|
||||
go build -o hp_ssh.wasm ./cmd/hp_ssh
|
||||
|
||||
# Patch Tailscale's derphttp to include DERPPort in WebSocket URLs.
|
||||
# Without this, DERP servers on non-443 ports fail in WASM builds.
|
||||
if [ -f patches/tailscale-derp-port.patch ]; then
|
||||
patch -d vendor -p1 < patches/tailscale-derp-port.patch
|
||||
fi
|
||||
|
||||
go build -mod=vendor -o hp_ssh.wasm ./cmd/hp_ssh
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
||||
Reference in New Issue
Block a user