mirror of
https://github.com/quarkslab/proxyblob
synced 2026-06-08 16:52:59 +00:00
5b21bc7cda
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
13 lines
163 B
Go
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)
|
|
}
|