mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-10-27 16:42:25 +00:00
access servers via SOCKS proxy (#482)
* access servers via SOCKS proxy * config to pass tcp timeout and option SOCKS5 proxy to the agent
This commit is contained in:
1 parent
e07121266a
commit
d788c3ca95
15 files changed
+99
-28
No files matched your search
@@ -122,7 +122,7 @@ sendRequest HTTP2Client {reqQ, config} req = do
|
||||
|
||||
runHTTP2Client :: T.Supported -> Maybe XS.CertificateStore -> HostName -> ServiceName -> Maybe KeepAliveOpts -> ((Request -> (Response -> IO ()) -> IO ()) -> IO ()) -> IO ()
|
||||
runHTTP2Client tlsParams caStore host port keepAliveOpts client =
|
||||
runTLSTransportClient tlsParams caStore host port Nothing keepAliveOpts $ \c ->
|
||||
runTLSTransportClient tlsParams caStore Nothing host port Nothing keepAliveOpts $ \c ->
|
||||
withTlsConfig c 16384 (`run` client)
|
||||
where
|
||||
run = H.run $ ClientConfig "https" (B.pack host) 20
|
||||
Reference in new issue
Block a user