Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yokra9/wasiter


https://github.com/yokra9/wasiter

wasm

Last synced: about 18 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Wasiter

Wasiter performs simple TCP forwarding using [WASI Sockets](https://github.com/WebAssembly/wasi-sockets).

Wasiter は [WASI Sockets](https://github.com/WebAssembly/wasi-sockets) を利用したシンプルな TCP 転送を行います

```bash
# Build
cargo build --target wasm32-wasi --release

# Usage
wasmedge --env REMOTE=127.0.0.1:80 --env LOCAL=127.0.0.1:1234 target/wasm32-wasi/release/wasiter.wasm
curl http://127.0.0.1:1234/index.html

wasmedge --env REMOTE=example.com:80 --env LOCAL=127.0.0.1:1234 target/wasm32-wasi/release/wasiter.wasm
curl -H "Host: example.com" http://127.0.0.1:1234/index.html
```