🎨 监听端口

This commit is contained in:
Liang Ding 2019-05-17 12:42:16 +08:00
parent 58de20eb86
commit 4760796915
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
1 changed files with 1 additions and 2 deletions

View File

@ -162,8 +162,7 @@ func main() {
logger.Infof("Wide is running [%s]", conf.Wide.Server) logger.Infof("Wide is running [%s]", conf.Wide.Server)
listen := conf.Wide.Server[strings.Index(conf.Wide.Server, "://")+3:] err := http.ListenAndServe("127.0.0.1:7070", nil)
err := http.ListenAndServe(listen, nil)
if err != nil { if err != nil {
logger.Error(err) logger.Error(err)
} }