Adjust version and README
This commit is contained in:
parent
3eab1ae216
commit
bcc332bd7b
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
/target
|
/target
|
||||||
|
config.yaml
|
||||||
config.json
|
config.json
|
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -481,7 +481,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustocat"
|
name = "rustocat"
|
||||||
version = "0.0.3"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"fern",
|
"fern",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rustocat"
|
name = "rustocat"
|
||||||
version = "0.0.3"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Socat in rust with many less features and a configuration file"
|
description = "Socat in rust with many less features and a configuration file"
|
||||||
license = "ISC"
|
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}.
|
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
|
```yaml
|
||||||
tcp:
|
mappings:
|
||||||
- source: 0.0.0.0:2222
|
- udp: false
|
||||||
|
source: 0.0.0.0:2222
|
||||||
targets: [127.0.0.1:22]
|
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.
|
When multiple targets are set, it will randomly pick one of them.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user