포트 설정 버그 수정

This commit is contained in:
2023-06-09 11:56:36 +09:00
parent 1d87ef3501
commit ae783aabaf

View File

@ -115,7 +115,7 @@ func NewServer() HoustonServer {
if bt, err := os.ReadFile("config.json"); err == nil {
var config totalConfig
if err := json.Unmarshal(bt, &config); err == nil {
if config.Server.GrpcPort == 0 {
if config.Server.GrpcPort != 0 {
port = config.Server.GrpcPort
}
}