mirror of
https://github.com/urbit/shrub.git
synced 2025-01-03 01:54:43 +03:00
king: address #3778 per joe
This commit is contained in:
parent
66e3df0b06
commit
e254c72788
@ -261,8 +261,13 @@ ames env who isFake scry enqueueEv stderr = (initialEvents, runAmes)
|
||||
if pktRcvr == who
|
||||
then serfsUp p a b
|
||||
else lan pktRcvr >>= \case
|
||||
Just (dest:_) -> forward dest $ encode pkt
|
||||
{ pktOrigin = pktOrigin <|> Just (ipDest p a) }
|
||||
Just ls
|
||||
| dest:_ <- filter notSelf ls
|
||||
-> forward dest $ encode pkt
|
||||
{ pktOrigin = pktOrigin <|> Just (ipDest p a) }
|
||||
where
|
||||
notSelf (EachYes g) = who /= Ship (fromIntegral g)
|
||||
notSelf (EachNo _) = True
|
||||
_ -> logInfo $ displayShow ("ames: dropping unroutable", pkt)
|
||||
|
||||
Right pkt -> logInfo $ displayShow ("ames: dropping ill-versed", pkt, ver)
|
||||
|
Loading…
Reference in New Issue
Block a user