Skip to content

Commit

Permalink
Merge ea3d664 into 5ac057d
Browse files Browse the repository at this point in the history
  • Loading branch information
maguowei authored Sep 28, 2023
2 parents 5ac057d + ea3d664 commit 77a95b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/service_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func (s *ServiceConfig) Export() error {
}

port := proto.Port
if len(proto.Port) == 0 {
if num, err := strconv.Atoi(proto.Port); err != nil || num <= 0 {
port = nextPort.Value.(string)
nextPort = nextPort.Next()
}
Expand Down

0 comments on commit 77a95b0

Please sign in to comment.