--- /dev/null
+{"ip":"37.187.243.109","map":{"*":"37.187.243.109"},"fingerprint":["F3ABCF9B979CAAADD6E3B5E7674A886A25F3F0BB"],"tor":"wivfwn64tm3uaeig.onion"}
module Main where
import Prelude hiding (readFile)
+import System.Environment
import Data.ByteString.Lazy (ByteString)
import Data.ByteString.Lazy.Char8 (readFile)
import System.IO.Error
(\e -> return (Left (show (e :: IOException))))
main = do
- descendNmcDom queryOp [] (seedNmcDom "root") >>= print
- descendNmcDom queryOp ["_tcp","_smtp"] (seedNmcDom "root") >>= print
+ (d:_) <- getArgs
+ descendNmcDom queryOp [] (seedNmcDom d) >>= print
+ descendNmcDom queryOp ["_tcp","_smtp"] (seedNmcDom d) >>= print