2017-10-20 15:08:25 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2017-11-30 21:28:18 +00:00
|
|
|
"flag"
|
|
|
|
|
2017-11-08 13:11:37 +00:00
|
|
|
"github.com/metonimie/simpleFTP/server/server"
|
2017-10-20 15:08:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2017-11-30 21:28:18 +00:00
|
|
|
flag.StringVar(&server.ConfigPath, "config", ".", "Set the location of the config file.")
|
|
|
|
flag.Parse()
|
|
|
|
|
2017-11-26 21:03:15 +00:00
|
|
|
server.Init()
|
|
|
|
|
|
|
|
go server.StartUploadServer()
|
2017-11-26 19:57:57 +00:00
|
|
|
server.StartFtpServer()
|
2017-10-20 15:08:25 +00:00
|
|
|
}
|