2020-09-06 11:40:31 +02:00
|
|
|
// Fully featured and highly configurable SFTP server with optional
|
2021-01-05 09:50:22 +01:00
|
|
|
// FTP/S and WebDAV support.
|
2020-09-06 11:40:31 +02:00
|
|
|
// For more details about features, installation, configuration and usage
|
|
|
|
// please refer to the README inside the source tree:
|
2021-02-09 19:53:03 +01:00
|
|
|
// https://github.com/drakkan/sftpgo/blob/main/README.md
|
2019-07-20 12:26:52 +02:00
|
|
|
package main // import "github.com/drakkan/sftpgo"
|
|
|
|
|
2020-09-03 18:09:45 +02:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"go.uber.org/automaxprocs/maxprocs"
|
|
|
|
|
2021-06-26 07:31:41 +02:00
|
|
|
"github.com/drakkan/sftpgo/v2/cmd"
|
2020-09-03 18:09:45 +02:00
|
|
|
)
|
2019-07-20 12:26:52 +02:00
|
|
|
|
|
|
|
func main() {
|
2020-09-03 18:09:45 +02:00
|
|
|
if undo, err := maxprocs.Set(); err != nil {
|
|
|
|
fmt.Printf("error setting max procs: %v\n", err)
|
|
|
|
undo()
|
|
|
|
}
|
2019-08-07 22:46:13 +02:00
|
|
|
cmd.Execute()
|
2019-07-20 12:26:52 +02:00
|
|
|
}
|