Tor: change unlines to unwords in hiddenService

Signed-off-by: Félix Sipma <felix.sipma@no-log.org>
This commit is contained in:
Félix Sipma 2014-11-13 09:49:13 +01:00 committed by Joey Hess
parent 3679a49353
commit cd1a911314
1 changed files with 3 additions and 3 deletions

View File

@ -38,10 +38,10 @@ hiddenServiceAvailable hn port = hiddenServiceHostName prop
hiddenService :: HiddenServiceName -> Int -> Property
hiddenService hn port = mainConfig `File.containsLines`
[ unlines ["HiddenServiceDir", varLib </> hn]
, unlines ["HiddenServicePort", show port, "127.0.0.1:" ++ show port]
[ unwords ["HiddenServiceDir", varLib </> hn]
, unwords ["HiddenServicePort", show port, "127.0.0.1:" ++ show port]
]
`describe` unlines ["hidden service available:", hn, show port]
`describe` unwords ["hidden service available:", hn, show port]
`onChange` restarted
hiddenServiceData :: HiddenServiceName -> Context -> Property