From 45996c4d1bb54fce347522017bea531e70ad5ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Fri, 14 Apr 2023 19:12:21 +0200 Subject: [PATCH] Fix host keys split --- containers/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/types.go b/containers/types.go index c7c5031..80c45a6 100644 --- a/containers/types.go +++ b/containers/types.go @@ -293,7 +293,7 @@ func (c *Container) GetHostKey() (string, error) { if hostKeyRaw != nil { hostKeyRawString := strings.TrimSpace(string(*hostKeyRaw)) - parts := strings.SplitN(hostKeyRawString, " ", 1) + parts := strings.SplitN(hostKeyRawString, " ", 2) if len(parts) > 1 { return parts[1], nil }