eolinker / goku_lite

A Powerful HTTP API Gateway in pure golang!Goku API Gateway (中文名:悟空 API 网关)是一个基于 Golang开发的微服务网关,能够实现高性能 HTTP API 转发、服务编排、多租户管理、API 访问权限控制等目的,拥有强大的自定义插件系统可以自行扩展,并且提供友好的图形化配置界面,能够快速帮助企业进行 API 服务治理、提高 API 服务的稳定性和安全性。
https://www.eolinker.com/product/api_gateway/
GNU General Public License v3.0
3.12k stars 603 forks source link

app/config/server.go listen_port config not working #83

Closed Ricord closed 3 years ago

Ricord commented 3 years ago

I changed the listen_port from 7000 to a custom value 8001, however the console still listen to 7000.

From the code I can see, it log out the correct listen_port, but still use 7000

The file path is "/app/config/server.go", line 27

    port, has := conf.Get("listen_port")
    if has {
        go func() {
            log.Print("Listen: ", port)
            log.Print("Start Successfully!")
            err := http.ListenAndServe(":7000", router())

            ec <- err
        }()
    } else {
        log.Panic("[ERROR] Illegal listen port!")
    }

Please make the http listen to port ,thanks.

Dot-Liu commented 3 years ago

Thanks This problem has been fixed.