fix: patch tailscale to support a custom DERP port

This commit is contained in:
Aarnav Tale
2026-04-07 00:23:34 -04:00
parent 33f7bbb0cf
commit 44dffeaff0
8 changed files with 146 additions and 7 deletions
+8 -1
View File
@@ -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 = ''