FTP: enable ftpserverlib logging and make debug mode configurable

This commit is contained in:
Nicola Murino
2021-07-20 17:22:08 +02:00
parent c900cde8e4
commit 5967aa1aa5
10 changed files with 45 additions and 6 deletions

View File

@@ -742,6 +742,12 @@ func getFTPDBindingFromEnv(idx int) {
isSet = true
}
debug, ok := lookupBoolFromEnv(fmt.Sprintf("SFTPGO_FTPD__BINDINGS__%v__DEBUG", idx))
if ok {
binding.Debug = debug
isSet = true
}
if isSet {
if len(globalConf.FTPD.Bindings) > idx {
globalConf.FTPD.Bindings[idx] = binding