skip init of relay secret key if there isn't one

This commit is contained in:
2025-08-04 21:27:26 +01:00
parent 1ffb7afb01
commit c0bd7d8da3
2 changed files with 4 additions and 1 deletions

View File

@@ -49,6 +49,9 @@ func (p *Peers) Init(
p.Pubkeys = append(p.Pubkeys, pk)
log.I.F("peer %s added; pubkey: %0x", split[1], pk)
}
if sec == "" {
return
}
p.I = &p256k.Signer{}
var s []byte
if s, err = keys.DecodeNsecOrHex(sec); chk.E(err) {

View File

@@ -1 +1 @@
v0.4.6
v0.4.7