File tree 1 file changed +8
-4
lines changed 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -792,7 +792,7 @@ async fn configure_client(server_name: String, config_path: String) -> anyhow::R
792
792
let server_name = ServerName :: parse ( & server_name) ?;
793
793
794
794
let config_path = PathBuf :: from ( config_path) ;
795
- let client = Client :: builder ( )
795
+ let mut client_builder = Client :: builder ( )
796
796
. store_config (
797
797
StoreConfig :: default ( )
798
798
. crypto_store (
@@ -805,9 +805,13 @@ async fn configure_client(server_name: String, config_path: String) -> anyhow::R
805
805
auto_enable_cross_signing : true ,
806
806
backup_download_strategy : BackupDownloadStrategy :: AfterDecryptionFailure ,
807
807
auto_enable_backups : true ,
808
- } )
809
- . build ( )
810
- . await ?;
808
+ } ) ;
809
+
810
+ if let Ok ( proxy_url) = std:: env:: var ( "PROXY" ) {
811
+ client_builder = client_builder. proxy ( proxy_url) . disable_ssl_verification ( ) ;
812
+ }
813
+
814
+ let client = client_builder. build ( ) . await ?;
811
815
812
816
// Try reading a session, otherwise create a new one.
813
817
let session_path = config_path. join ( "session.json" ) ;
You can’t perform that action at this time.
0 commit comments