summaryrefslogtreecommitdiff
path: root/dht/Presence/LocalPeerCred.hs
diff options
context:
space:
mode:
Diffstat (limited to 'dht/Presence/LocalPeerCred.hs')
-rw-r--r--dht/Presence/LocalPeerCred.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/dht/Presence/LocalPeerCred.hs b/dht/Presence/LocalPeerCred.hs
index f68557e8..a7344434 100644
--- a/dht/Presence/LocalPeerCred.hs
+++ b/dht/Presence/LocalPeerCred.hs
@@ -62,6 +62,7 @@ getLocalPeerCred' (unmap6mapped4 -> addr@(SockAddrUnix _)) =
62 -- see also: Network.Socket.getPeerCred 62 -- see also: Network.Socket.getPeerCred
63 return Nothing 63 return Nothing
64 64
65{- // Removed due to no call-sites
65getLocalPeerCred :: SocketLike sock => sock -> IO (Maybe UserID) 66getLocalPeerCred :: SocketLike sock => sock -> IO (Maybe UserID)
66getLocalPeerCred sock = do 67getLocalPeerCred sock = do
67 addr <- getPeerName sock 68 addr <- getPeerName sock
@@ -72,6 +73,7 @@ getLocalPeerCred sock = do
72 where sndOf3 (pid,uid,gid) = uid 73 where sndOf3 (pid,uid,gid) = uid
73 where 74 where
74 validate uid = Just uid -- TODO 75 validate uid = Just uid -- TODO
76-}
75 77
76from16 :: Word16 -> Int 78from16 :: Word16 -> Int
77from16 = fromEnum 79from16 = fromEnum