mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-21 23:47:35 +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
|
if pktRcvr == who
|
||||||
then serfsUp p a b
|
then serfsUp p a b
|
||||||
else lan pktRcvr >>= \case
|
else lan pktRcvr >>= \case
|
||||||
Just (dest:_) -> forward dest $ encode pkt
|
Just ls
|
||||||
{ pktOrigin = pktOrigin <|> Just (ipDest p a) }
|
| 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)
|
_ -> logInfo $ displayShow ("ames: dropping unroutable", pkt)
|
||||||
|
|
||||||
Right pkt -> logInfo $ displayShow ("ames: dropping ill-versed", pkt, ver)
|
Right pkt -> logInfo $ displayShow ("ames: dropping ill-versed", pkt, ver)
|
||||||
|
Loading…
Reference in New Issue
Block a user