Files
quarkslab-proxyblob/pkg/proxy/socks/dial_native.go
T
Atsika 5b21bc7cda Add WASM agent support for JavaScript runtimes
Compile the agent to WebAssembly for deployment in JS runtimes (Bun,
Node.js, or any runtime implementing the TCPDial/UDPListen interface).

- Split network and UDP code with js/native build tags
- Extract UDP relay into a platform-agnostic shared layer
- Expose runtime-agnostic TCPDial and UDPListen JS hooks
- Add azure-sdk-for-go fork as submodule for WASM-compatible mmf fallback
- Bump aznet dependency
- Document WASM build and JS interface in README
2026-03-21 19:45:24 +01:00

13 lines
163 B
Go

//go:build !js
package proxy
import (
"net"
"time"
)
func dialTCP(target string) (net.Conn, error) {
return net.DialTimeout("tcp", target, 10*time.Second)
}