mirror of https://github.com/voidlizard/hbs2
fixed pexinfo fix
This commit is contained in:
parent
4d756d6eaf
commit
1623b5b1a4
|
@ -711,7 +711,7 @@ runPeer opts = U.handle (\e -> myException e
|
||||||
let pexFilt pips = do
|
let pexFilt pips = do
|
||||||
tcpex <- listTCPPexCandidates @e brains -- <&> HashSet.fromList
|
tcpex <- listTCPPexCandidates @e brains -- <&> HashSet.fromList
|
||||||
pips2 <- filter onlyUDP <$> mapM toPeerAddr pips
|
pips2 <- filter onlyUDP <$> mapM toPeerAddr pips
|
||||||
pure (L.nub (pips2 <> tcpex))
|
mapM fromPeerAddr (L.nub (pips2 <> tcpex))
|
||||||
where
|
where
|
||||||
onlyUDP = \case
|
onlyUDP = \case
|
||||||
(L4Address UDP _) -> True
|
(L4Address UDP _) -> True
|
||||||
|
|
Loading…
Reference in New Issue