Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yokra9/wasiter
https://github.com/yokra9/wasiter
wasm
Last synced: about 18 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/yokra9/wasiter
- Owner: yokra9
- Created: 2023-03-07T13:47:15.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-11T15:16:15.000Z (over 1 year ago)
- Last Synced: 2024-12-14T16:14:10.317Z (about 1 month ago)
- Topics: wasm
- Language: Rust
- Homepage: https://qiita.com/yokra9/items/72afea01bdf5991d80ad
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.htmlwasmedge --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
```