From a266cd9f7733393789bf874c84ea07ea30a8619f Mon Sep 17 00:00:00 2001 From: Mehdi <3422399+meeehdi-dev@users.noreply.github.com> Date: Fri, 3 Nov 2023 01:50:54 +0100 Subject: [PATCH] fix(bastion): use target db instead of first result (#4) --- cmd/torpedo/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/torpedo/main.go b/cmd/torpedo/main.go index f39303e..7c2726b 100644 --- a/cmd/torpedo/main.go +++ b/cmd/torpedo/main.go @@ -107,7 +107,7 @@ func main() { spin.Suffix = " starting proxy to " + color.BlueString(*target.DBInstanceIdentifier) slog.Info("starting bastion", "target", *target.DBInstanceIdentifier) - _, ip, err := b.Start(b.DBS[0], c.PublicKey()) + _, ip, err := b.Start(target, c.PublicKey()) if err != nil { return err }