mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
0.2.5 initial commit
Makefile incomplete
This commit is contained in:
13
agent/src/Lib/Tor.hs
Normal file
13
agent/src/Lib/Tor.hs
Normal file
@@ -0,0 +1,13 @@
|
||||
module Lib.Tor where
|
||||
|
||||
import Startlude
|
||||
|
||||
import qualified Data.Text as T
|
||||
|
||||
import Lib.SystemPaths
|
||||
|
||||
getAgentHiddenServiceUrl :: (HasFilesystemBase sig m, MonadIO m) => m Text
|
||||
getAgentHiddenServiceUrl = T.strip <$> readSystemPath' agentTorHiddenServiceHostnamePath
|
||||
|
||||
getAgentHiddenServiceUrlMaybe :: (HasFilesystemBase sig m, MonadIO m) => m (Maybe Text)
|
||||
getAgentHiddenServiceUrlMaybe = fmap T.strip <$> readSystemPath agentTorHiddenServiceHostnamePath
|
||||
Reference in New Issue
Block a user