Adjust version and README

This commit is contained in:
Fabian Stamm 2023-02-05 11:34:57 +01:00
parent 3eab1ae216
commit bcc332bd7b
4 changed files with 7 additions and 5 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/target
config.yaml
config.json

2
Cargo.lock generated
View File

@ -481,7 +481,7 @@ dependencies = [
[[package]]
name = "rustocat"
version = "0.0.3"
version = "0.1.0"
dependencies = [
"chrono",
"fern",

View File

@ -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"

View File

@ -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.