mirror of https://github.com/voidlizard/hbs2
fix announces (maybe)
This commit is contained in:
parent
a1bbc634f4
commit
e061a2793a
|
@ -75,10 +75,12 @@ acceptAnnouncesFromPeer conf@(PeerConfig syn) pa = runPlus do
|
|||
|
||||
let accptAnn = runReader (cfgValue @PeerAcceptAnnounceKey) syn
|
||||
|
||||
guard =<< peerBanned conf pd
|
||||
guard . not =<< peerBanned conf pd
|
||||
|
||||
case accptAnn of
|
||||
AcceptAnnounceAll -> pure ()
|
||||
AcceptAnnounceAll -> do
|
||||
pure ()
|
||||
|
||||
AcceptAnnounceFrom s -> do
|
||||
guard (view peerSignKey pd `Set.member` s)
|
||||
|
||||
|
|
Loading…
Reference in New Issue