diff --git a/pkg/acl/follows.go b/pkg/acl/follows.go index 43668e9..3a7edcd 100644 --- a/pkg/acl/follows.go +++ b/pkg/acl/follows.go @@ -69,8 +69,10 @@ func (f *Follows) Configure(cfg ...any) (err error) { for _, admin := range f.cfg.Admins { log.I.F("%s", admin) var adm []byte - if adm, err = bech32encoding.NpubOrHexToPublicKeyBinary(admin); chk.E(err) { + if a, e := bech32encoding.NpubOrHexToPublicKeyBinary(admin); chk.E(e) { continue + } else { + adm = a } log.I.F("admin: %0x", adm) f.admins = append(f.admins, adm) @@ -100,8 +102,10 @@ func (f *Follows) Configure(cfg ...any) (err error) { for _, v := range ev.Tags.GetAll([]byte("p")) { log.I.F("adding follow: %s", v.Value()) var a []byte - if a, err = hex.Dec(string(v.Value())); chk.E(err) { + if b, e := hex.Dec(string(v.Value())); chk.E(e) { continue + } else { + a = b } f.follows = append(f.follows, a) } diff --git a/scripts/relaytester-test.sh b/scripts/relaytester-test.sh index 6cadd0e..f9e14cd 100755 --- a/scripts/relaytester-test.sh +++ b/scripts/relaytester-test.sh @@ -7,7 +7,7 @@ if ! command -v "relay-tester" &> /dev/null; then echo "./scripts/relaytester-install.sh" exit fi -export ORLY_LOG_LEVEL=trace +export ORLY_LOG_LEVEL=off export ORLY_LISTEN=127.0.0.1 export ORLY_PORT=3334 export ORLY_IP_WHITELIST=127.0.0