summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Crayne <jim.crayne@gmail.com>2018-06-17 01:31:17 +0000
committerJames Crayne <jim.crayne@gmail.com>2018-06-17 01:31:17 +0000
commitb781d86e1cabf50a8e19bc4bedbe2036703231cf (patch)
tree200ca0ce19db22db35135c350775d34265850fd6 /src
parentc74b90ae02cfb5614ed41ee1b52bb233f62db3b8 (diff)
make ignoring lan message suppressible
Diffstat (limited to 'src')
-rw-r--r--src/DPut.hs2
-rw-r--r--src/Network/Tox/DHT/Handlers.hs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/DPut.hs b/src/DPut.hs
index 11bcc2d0..482db515 100644
--- a/src/DPut.hs
+++ b/src/DPut.hs
@@ -6,7 +6,7 @@ import System.IO (stderr,hPutStrLn)
6import Data.Maybe 6import Data.Maybe
7import System.IO.Unsafe (unsafePerformIO) 7import System.IO.Unsafe (unsafePerformIO)
8 8
9data DebugTag = XAnnounce | XDHT | XOnion | XNetCrypto | XPing | XMisc 9data DebugTag = XAnnounce | XDHT | XOnion | XNetCrypto | XPing | XLan | XMisc
10 deriving (Eq,Ord,Show,Read) 10 deriving (Eq,Ord,Show,Read)
11 11
12{-# NOINLINE verbosityMap #-} 12{-# NOINLINE verbosityMap #-}
diff --git a/src/Network/Tox/DHT/Handlers.hs b/src/Network/Tox/DHT/Handlers.hs
index 57fc1d57..6a80b4a4 100644
--- a/src/Network/Tox/DHT/Handlers.hs
+++ b/src/Network/Tox/DHT/Handlers.hs
@@ -414,7 +414,7 @@ getNodes client cbvar nid addr = do
414 414
415updateRouting :: Client -> Routing -> OnionRouter -> NodeInfo -> Message -> IO () 415updateRouting :: Client -> Routing -> OnionRouter -> NodeInfo -> Message -> IO ()
416updateRouting client routing orouter naddr msg 416updateRouting client routing orouter naddr msg
417 | PacketKind 0x21 <- msgType msg = hPutStrLn stderr "(tox)updateRouting: ignoring lan discovery" -- ignore lan discovery 417 | PacketKind 0x21 <- msgType msg = dput XLan "(tox)updateRouting: ignoring lan discovery" -- ignore lan discovery
418 | otherwise = do 418 | otherwise = do
419 atomically $ do 419 atomically $ do
420 m <- HashMap.lookup (nodeId naddr) <$> readTVar (nodesOfInterest routing) 420 m <- HashMap.lookup (nodeId naddr) <$> readTVar (nodesOfInterest routing)