ssh: remove the ability to fully customize the software version

many clients rely on the version string to enable/disable some features.
We only allow to hide the version number, clients must be able to reliably
identify SFTPGo

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2024-04-20 17:15:15 +02:00
parent a38fd26cf6
commit ad7dcdb628
4 changed files with 12 additions and 8 deletions

View File

@@ -141,7 +141,7 @@ func TestEmptyBanner(t *testing.T) {
err = config.LoadConfig(configDir, confName)
assert.NoError(t, err)
sftpdConf = config.GetSFTPDConfig()
assert.NotEmpty(t, strings.TrimSpace(sftpdConf.Banner))
assert.Empty(t, strings.TrimSpace(sftpdConf.Banner))
err = os.Remove(configFilePath)
assert.NoError(t, err)