21 lines
356 B
Markdown
21 lines
356 B
Markdown
# udprelay
|
|
|
|
Minimal example to show how to relay UDP packets.
|
|
|
|
|
|
|
|
## Build
|
|
|
|
```text
|
|
go build -o udprelay main.go
|
|
```
|
|
|
|
|
|
## Usage
|
|
```text
|
|
./udprelay -addr "127.0.0.1:9998" -dest "192.168.1.10:9999"
|
|
2022/02/21 15:41:50 Listening to 127.0.0.1:9998 - Relaying to 192.168.1.10:9999
|
|
...
|
|
2022/02/21 15:42:03 3 bytes relayed from 127.0.0.1:64078 to destination.
|
|
```
|