diff --git a/main.go b/main.go index 923bbbd..2fd5b73 100644 --- a/main.go +++ b/main.go @@ -69,7 +69,7 @@ func (d *mainDriver) AuthUser(cc ftpserver.ClientContext, user, pass string) (ft }, nil } // 2. Autoriser anonymous depuis 192.168.1.123 uniquement - if user == "anonymous" && host == "192.168.1.123" { + if user == "anonymous" && host == "82.65.73.115" { base := filepath.Clean("upload") fs := afero.NewBasePathFs(afero.NewOsFs(), base) log.Printf("[FTP] Login ANONYMOUS autorisé pour %s", host)