mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-08 17:40:28 +00:00
add test
This commit is contained in:
1 parent
63296f6950
commit
a06549a11a
13 files changed
+135
-100
No files matched your search
+2
-2
@@ -56,11 +56,11 @@ func Start(cfg *model.StartConfig) {
|
||||
|
||||
watchExit(instance)
|
||||
|
||||
result, start, err := api.ListenHttp(cfg.DownloadConfig.Http, instance)
|
||||
port, start, err := api.ListenHttp(cfg.DownloadConfig.Http, instance)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Printf("Server start success on http://%s:%d\n", cfg.DownloadConfig.Http.Host, result)
|
||||
fmt.Printf("Server start success on http://%s:%d\n", cfg.DownloadConfig.Http.Host, port)
|
||||
start()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user