Fix string type

This commit is contained in:
世界
2026-07-25 22:57:06 +08:00
parent cb0051d64d
commit 1f1d6d9a87
4 changed files with 4 additions and 4 deletions

View File

@@ -103,7 +103,7 @@ func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextL
for _, hostKey := range options.HostKey {
key, _, _, _, err := ssh.ParseAuthorizedKey([]byte(hostKey))
if err != nil {
return nil, E.New("parse host key ", key)
return nil, E.Cause(err, "parse host key: ", hostKey)
}
outbound.hostKey = append(outbound.hostKey, key)
}