diff options
author | lassulus <lassulus@lassul.us> | 2020-10-29 23:03:17 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2020-10-29 23:03:17 +0100 |
commit | 07abe45cafcb93f1b30df9a9e0644b3fbd8ebfb5 (patch) | |
tree | 51dfca900f06a6e927c104c1c4c5b80300b06172 | |
parent | a6893c00f78a8acd0a4bfe7da87ab6889eabcf21 (diff) |
Reaktor: use new TLS api for default client settings
-rw-r--r-- | src/Reaktor.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Reaktor.hs b/src/Reaktor.hs index cc93109..caddbc9 100644 --- a/src/Reaktor.hs +++ b/src/Reaktor.hs @@ -44,7 +44,7 @@ import System.Posix.Signals run :: Config -> Maybe API.Config -> (Actions -> IO [Message -> IO ()]) -> IO () run Config{..} apiConfig getPlugins = if cUseTLS then do - s <- TLS.getDefaultClientSettings (cHostName, BS.pack cServiceName) + s <- TLS.newDefaultClientParams (cHostName, BS.pack cServiceName) TLS.connect s cHostName cServiceName $ \(ctx, sockAddr) -> withSocket sockAddr (TLS.send ctx) (TLS.recv ctx) else do |