Adjust version and README
This commit is contained in:
parent
3eab1ae216
commit
bcc332bd7b
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
/target
|
||||
config.yaml
|
||||
config.json
|
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -481,7 +481,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rustocat"
|
||||
version = "0.0.3"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"fern",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "rustocat"
|
||||
version = "0.0.3"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
description = "Socat in rust with many less features and a configuration file"
|
||||
license = "ISC"
|
||||
|
@ -7,12 +7,13 @@ Rustocat is a simple socat alternative with way less features, but it has a conf
|
||||
Configs can be either yaml or json and can be located in /etc/rustocat.{yaml|json} or in the current working directory as config.{yaml|json}.
|
||||
|
||||
```yaml
|
||||
tcp:
|
||||
- source: 0.0.0.0:2222
|
||||
mappings:
|
||||
- udp: false
|
||||
source: 0.0.0.0:2222
|
||||
targets: [127.0.0.1:22]
|
||||
```
|
||||
|
||||
Currently only TCP is supported, UDP/Unix Socket support might be added later.
|
||||
There is support for UDP and TCP sockets. Each socket can have multiple targets.
|
||||
|
||||
When multiple targets are set, it will randomly pick one of them.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user