mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
add an util method to convert []byte to string
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -63,7 +63,7 @@ func NewServer(config *Configuration, configDir string, binding Binding, id int)
|
||||
}
|
||||
bannerContent, err := os.ReadFile(bannerFilePath)
|
||||
if err == nil {
|
||||
server.initialMsg = string(bannerContent)
|
||||
server.initialMsg = util.BytesToString(bannerContent)
|
||||
} else {
|
||||
logger.WarnToConsole("unable to read FTPD banner file: %v", err)
|
||||
logger.Warn(logSender, "", "unable to read banner file: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user