Adding config file locations and yaml support
This commit is contained in:
15
README.md
Normal file
15
README.md
Normal 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.
|
||||
Reference in New Issue
Block a user