summaryrefslogtreecommitdiff
path: root/src/Discovery.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Discovery.hs')
-rw-r--r--src/Discovery.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Discovery.hs b/src/Discovery.hs
index f419eab..a05fdac 100644
--- a/src/Discovery.hs
+++ b/src/Discovery.hs
@@ -107,7 +107,7 @@ instance Service DiscoveryService where
let insertHelper new old | dpPriority new > dpPriority old = new
| otherwise = old
mbaddr <- case words (T.unpack addr) of
- [ipaddr, port] | DatagramAddress _ paddr <- peerAddress peer -> do
+ [ipaddr, port] | DatagramAddress paddr <- peerAddress peer -> do
saddr <- liftIO $ head <$> getAddrInfo (Just $ defaultHints { addrSocketType = Datagram }) (Just ipaddr) (Just port)
return $ if paddr == addrAddress saddr
then Just addr