From 0e5c285eb71db07026e5fe54c347f9ef8cbe8829 Mon Sep 17 00:00:00 2001 From: ginuerzh Date: Sun, 10 Aug 2025 18:36:43 +0800 Subject: [PATCH] fix empty hop nodes --- config/parsing/hop/parse.go | 1 - hop/hop.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/config/parsing/hop/parse.go b/config/parsing/hop/parse.go index dc284118..200c7ab8 100644 --- a/config/parsing/hop/parse.go +++ b/config/parsing/hop/parse.go @@ -68,7 +68,6 @@ func ParseHop(cfg *config.HopConfig, log logger.Logger) (hop.Hop, error) { } ppv = mdutil.GetInt(md, parsing.MDKeyProxyProtocol) netns = mdutil.GetString(md, parsing.MDKeyNetns) - } var nodes []*chain.Node diff --git a/hop/hop.go b/hop/hop.go index f94c8a34..d6c6dfc1 100644 --- a/hop/hop.go +++ b/hop/hop.go @@ -106,6 +106,7 @@ func NewHop(opts ...Option) hop.Hop { ctx, cancel := context.WithCancel(context.TODO()) p := &chainHop{ + nodes: options.nodes, cancelFunc: cancel, options: options, logger: options.logger,