From 5b7922e2d605be82a11ec222deadef0e035ccc8a Mon Sep 17 00:00:00 2001 From: iBug Date: Wed, 14 Aug 2024 01:18:10 +0800 Subject: [PATCH] Fix moved config.example.json --- README.md | 2 +- etc/config.example.json | 1 + sshmux_test.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1617797..e61201d 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ You can perform unit tests with `go test` or `make test`. Enable verbose logging ## Config -`sshmux` requires a JSON configuration file to start up. By default it will look at `/etc/sshmux/config.json`, but you can also specify a custom configuration by passing `-c path/to/config.json` in the command line arguments. An [example](config.example.json) file is provided. +`sshmux` requires a JSON configuration file to start up. By default it will look at `/etc/sshmux/config.json`, but you can also specify a custom configuration by passing `-c path/to/config.json` in the command line arguments. An [example](etc/config.example.json) file is provided. The table below shows the available options for `sshmux`: diff --git a/etc/config.example.json b/etc/config.example.json index 8a888a9..b797ef2 100644 --- a/etc/config.example.json +++ b/etc/config.example.json @@ -10,6 +10,7 @@ ], "api": "http://127.0.0.1:5000/ssh", "token": "token", + "recovery-token": "token", "recovery-server": "172.30.0.101:2222", "recovery-username": ["recovery", "console", "serial"], "all-username-nopassword": true, diff --git a/sshmux_test.go b/sshmux_test.go index 20dc6b7..ee701f0 100644 --- a/sshmux_test.go +++ b/sshmux_test.go @@ -246,7 +246,7 @@ func TestSSHClientConnection(t *testing.T) { initEnv(t, baseDir) privateKeyPath := filepath.Join(baseDir, "example_rsa") - go sshmuxServer("config.example.json") + go sshmuxServer("etc/config.example.json") // sanity check testWithSSHClient(t, sshdServerAddr, "sanity check", false, baseDir, privateKeyPath)