Skip to content

Commit

Permalink
FEAT: declare all the features we support (#212)
Browse files Browse the repository at this point in the history
Co-authored-by: Florent Clairambault <[email protected]>
  • Loading branch information
drakkan and fclairamb authored Dec 24, 2020
1 parent dca74a8 commit 6026640
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion handle_misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ func (c *clientHandler) handleFEAT(param string) error {
"SIZE",
"MDTM",
"REST STREAM",
"EPRT",
"EPSV",
}

if !c.server.settings.DisableMLSD {
Expand All @@ -217,7 +219,7 @@ func (c *clientHandler) handleFEAT(param string) error {

// This code made me think about adding this: https://github.com/stianstr/ftpserver/commit/387f2ba
if tlsConfig, err := c.server.driver.GetTLSConfig(); tlsConfig != nil && err == nil {
features = append(features, "AUTH TLS")
features = append(features, "AUTH TLS", "PBSZ", "PROT")
}

if c.server.settings.EnableHASH {
Expand Down

0 comments on commit 6026640

Please sign in to comment.