summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Tor.hs
diff options
context:
space:
mode:
authorFélix Sipma2017-02-20 12:42:08 +0100
committerFélix Sipma2017-02-20 12:42:08 +0100
commit3dfadee711b7172e52d270320071c648c5a5721f (patch)
tree71d1a23b63d0d63e69242853935b5e2dab81c152 /src/Propellor/Property/Tor.hs
parentb29bab35747e6345a4818e5a77c53d029562e3c3 (diff)
Tor bugfix: use fromPort instead of show
Diffstat (limited to 'src/Propellor/Property/Tor.hs')
-rw-r--r--src/Propellor/Property/Tor.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Propellor/Property/Tor.hs b/src/Propellor/Property/Tor.hs
index db71c87a..72bd45f5 100644
--- a/src/Propellor/Property/Tor.hs
+++ b/src/Propellor/Property/Tor.hs
@@ -128,7 +128,7 @@ hiddenService hn port = hiddenService' hn [port]
hiddenService' :: HiddenServiceName -> [Port] -> Property DebianLike
hiddenService' hn ports = ConfFile.adjustSection
- (unwords ["hidden service", hn, "available on ports", intercalate "," (map show ports')])
+ (unwords ["hidden service", hn, "available on ports", intercalate "," (map fromPort ports')])
(== oniondir)
(not . isPrefixOf "HiddenServicePort")
(const (oniondir : onionports))
@@ -139,7 +139,7 @@ hiddenService' hn ports = ConfFile.adjustSection
oniondir = unwords ["HiddenServiceDir", varLib </> hn]
onionports = map onionport ports'
ports' = sort ports
- onionport port = unwords ["HiddenServicePort", show port, "127.0.0.1:" ++ show port]
+ onionport port = unwords ["HiddenServicePort", fromPort port, "127.0.0.1:" ++ fromPort port]
-- | Same as `hiddenService` but also causes propellor to display
-- the onion address of the hidden service.