Adding config file locations and yaml support

This commit is contained in:
2022-03-21 11:12:59 +01:00
parent 54992ab5cb
commit bfd0189610
5 changed files with 118 additions and 9 deletions

15
README.md Normal file
View File

@ -0,0 +1,15 @@
# Rustocat
Rustocat is a simple socat alternative with way less features, but it has a config file.
## Config File
Configs can be either yaml or json and can be located in /etc/rustocat.{yaml|json} or ind the current working directory as config.{yaml|json}.
```yaml
tcp:
- source: 0.0.0.0:2222
target: 127.0.0.1:22
```
Currently only TCP is supported, UDP/Unix Socket support might be added later.