From e0407926d6d9c13e048d0e77d9e371f857b54837 Mon Sep 17 00:00:00 2001 From: TangDH03 <315617683@qq.com> Date: Wed, 29 Jul 2020 21:44:57 +0800 Subject: [PATCH] nsqlookupd: fix listen error lists incorrect address --- nsqlookupd/nsqlookupd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsqlookupd/nsqlookupd.go b/nsqlookupd/nsqlookupd.go index 72c3ad4f5..4fc85db7e 100644 --- a/nsqlookupd/nsqlookupd.go +++ b/nsqlookupd/nsqlookupd.go @@ -42,7 +42,7 @@ func New(opts *Options) (*NSQLookupd, error) { } l.httpListener, err = net.Listen("tcp", opts.HTTPAddress) if err != nil { - return nil, fmt.Errorf("listen (%s) failed - %s", opts.TCPAddress, err) + return nil, fmt.Errorf("listen (%s) failed - %s", opts.HTTPAddress, err) } return l, nil