Fix string type

This commit is contained in:
世界
2026-07-25 22:57:06 +08:00
parent ea6965b726
commit f60f3728ce
7 changed files with 9 additions and 123 deletions
+1 -1
View File
@@ -110,7 +110,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)
}