up
This commit is contained in:
parent
82f2dd9f7f
commit
e3887bef74
3
main.go
3
main.go
@ -264,10 +264,11 @@ func startHTTP() {
|
||||
|
||||
func main() {
|
||||
// SFTP sur 2222 (root = ./upload)
|
||||
//go startSFTPServer(SFTPBaseDir)
|
||||
|
||||
// HTTP normal
|
||||
startHTTP()
|
||||
go startSFTPServer(SFTPBaseDir)
|
||||
|
||||
}
|
||||
func loadOrCreateRSAHostKey(path string) (ssh.Signer, error) {
|
||||
if _, err := os.Stat(path); err == nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user