提交 d2b0b8ca 编写于 作者: L Liujian

修复控制台端口号写死的问题

上级 44f9d303
...@@ -29,7 +29,7 @@ func Server() { ...@@ -29,7 +29,7 @@ func Server() {
go func() { go func() {
log.Print("Listen: ", port) log.Print("Listen: ", port)
log.Print("Start Successfully!") log.Print("Start Successfully!")
err := http.ListenAndServe(":7000", router()) err := http.ListenAndServe(":" + port, router())
ec <- err ec <- err
}() }()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册