aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-03-06 15:13:06 -0500
committerAdnan Maolood <[email protected]>2021-03-06 15:13:06 -0500
commitc639233ea1f307ad54ff5e3e7fce08760a3522b9 (patch)
treeeaf9b5ddcc78f78679ff782ac08d073508bc51c4
parenttofu: Automatically create file in KnownHosts.Load (diff)
downloadgo-gemini-c639233ea1f307ad54ff5e3e7fce08760a3522b9.tar.xz
go-gemini-c639233ea1f307ad54ff5e3e7fce08760a3522b9.zip
tofu: Fix format in error message
-rw-r--r--tofu/tofu.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tofu/tofu.go b/tofu/tofu.go
index a2f2a9a..fb7361b 100644
--- a/tofu/tofu.go
+++ b/tofu/tofu.go
@@ -317,7 +317,7 @@ func (h Host) String() string {
// UnmarshalText unmarshals the host from the provided text.
func (h *Host) UnmarshalText(text []byte) error {
- const format = "hostname algorithm hex-fingerprint expiry-unix-ts"
+ const format = "hostname algorithm fingerprint"
parts := bytes.Split(text, []byte(" "))
if len(parts) != 3 {