mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
sftpd: properly handle listener accept errors
continue on temporary errors and exit from the serve loop for the other ones
This commit is contained in:
@@ -140,7 +140,7 @@ func (c *Configuration) Initialize(configDir string) error {
|
||||
|
||||
server.status.Bindings = nil
|
||||
|
||||
exitChannel := make(chan error)
|
||||
exitChannel := make(chan error, 1)
|
||||
|
||||
for _, binding := range c.Bindings {
|
||||
if !binding.IsValid() {
|
||||
|
||||
Reference in New Issue
Block a user