diff --git a/.gitignore b/.gitignore index 94ec7a2..10649de 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target +config.yaml config.json \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index b96bda8..6952ee8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -481,7 +481,7 @@ dependencies = [ [[package]] name = "rustocat" -version = "0.0.3" +version = "0.1.0" dependencies = [ "chrono", "fern", diff --git a/Cargo.toml b/Cargo.toml index 5252025..ebd38f3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/README.md b/README.md index 3f809fa..008165b 100644 --- a/README.md +++ b/README.md @@ -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.