Merge branch 'joeyconfig'
This commit is contained in:
commit
17d81326ba
|
@ -20,11 +20,11 @@ hiddenServiceAvailable :: FilePath -> Int -> Property
|
||||||
hiddenServiceAvailable dir port = hiddenServiceHostName prop
|
hiddenServiceAvailable dir port = hiddenServiceHostName prop
|
||||||
where
|
where
|
||||||
prop = "/etc/tor/torrc" `File.containsLines`
|
prop = "/etc/tor/torrc" `File.containsLines`
|
||||||
[ "HiddenServiceDir " ++ dir
|
[ "HiddenServiceDir " ++ dir
|
||||||
, "HiddenServicePort " ++ show port ++ " 127.0.0.1:" ++ show port
|
, "HiddenServicePort " ++ show port ++ " 127.0.0.1:" ++ show port
|
||||||
]
|
]
|
||||||
`describe` "hidden service available"
|
`describe` "hidden service available"
|
||||||
`onChange` Service.reloaded "tor"
|
`onChange` Service.reloaded "tor"
|
||||||
hiddenServiceHostName p = adjustProperty p $ \satisfy -> do
|
hiddenServiceHostName p = adjustProperty p $ \satisfy -> do
|
||||||
r <- satisfy
|
r <- satisfy
|
||||||
h <- liftIO $ readFile (dir </> "hostname")
|
h <- liftIO $ readFile (dir </> "hostname")
|
||||||
|
|
Loading…
Reference in New Issue