From 5441c1bb6d67a9be3ce6d82f44e90215c322b497 Mon Sep 17 00:00:00 2001
From: Andras Banki-Horvath <bhandras@gmail.com>
Date: Thu, 18 Feb 2021 16:54:28 +0100
Subject: [PATCH] etcd: fix embbeded etcd connection cfg

---
 channeldb/kvdb/etcd/embed.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/channeldb/kvdb/etcd/embed.go b/channeldb/kvdb/etcd/embed.go
index 0de87c0b..a083af27 100644
--- a/channeldb/kvdb/etcd/embed.go
+++ b/channeldb/kvdb/etcd/embed.go
@@ -98,7 +98,7 @@ func NewEmbeddedEtcdInstance(path string, clientPort, peerPort uint16) (
 	}
 
 	connConfig := &Config{
-		Host:               "http://" + peerURL,
+		Host:               "http://" + clientURL,
 		User:               "user",
 		Pass:               "pass",
 		InsecureSkipVerify: true,