Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

Commit

Permalink
[patch] fix port field value (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuke Kato committed Jan 27, 2019
1 parent 754361e commit 570b4bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ngtd.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,16 @@ func NewNGTD(index string, db kvs.KVS, port int) (*NGTD, error) {
}

p := strconv.Itoa(port)

l, err := net.Listen("tcp", ":"+p)
if err != nil {
return nil, err
}

return &NGTD{
sigCh: sigCh,
l: l,
port: ":" + p,
port: p,
}, nil
}

Expand Down

0 comments on commit 570b4bd

Please sign in to comment.