summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorKeuin <[email protected]>2023-09-04 01:57:22 +0800
committerKeuin <[email protected]>2023-09-04 02:03:15 +0800
commit143014a91e695106d8383ed173c482b3b4519663 (patch)
tree717d8d34ce9a5857b0293f7fcf7ea9ba13199da7 /example
initial versionv0.1.0
Diffstat (limited to 'example')
-rw-r--r--example/client.toml7
-rw-r--r--example/server.toml19
2 files changed, 26 insertions, 0 deletions
diff --git a/example/client.toml b/example/client.toml
new file mode 100644
index 0000000..fff3308
--- /dev/null
+++ b/example/client.toml
@@ -0,0 +1,7 @@
+[client]
+addr = "127.0.0.1:10000"
+
+[[service]]
+name = "Telnet"
+addr = "127.0.0.1:1112"
+
diff --git a/example/server.toml b/example/server.toml
new file mode 100644
index 0000000..e443ef2
--- /dev/null
+++ b/example/server.toml
@@ -0,0 +1,19 @@
+[server]
+listen = "0.0.0.0:10000"
+allow_help = false
+
+[[service]]
+name = "SSH"
+addr = "127.0.0.1:22"
+
+[[service]]
+name = "Telnet"
+addr = "127.0.0.1:1111"
+
+[[service]]
+name = "Website"
+addr = "127.0.0.1:80"
+
+[[service]]
+name = "RemoteDesktop"
+addr = "127.0.0.1:3389"