@@ -73,6 +73,12 @@ public string GPGUserKey
73
73
set ;
74
74
}
75
75
76
+ public bool EnableHTTPSSLVerify
77
+ {
78
+ get ;
79
+ set ;
80
+ } = false ;
81
+
76
82
public static readonly StyledProperty < Models . OpenAIService > SelectedOpenAIServiceProperty =
77
83
AvaloniaProperty . Register < Preference , Models . OpenAIService > ( nameof ( SelectedOpenAIService ) ) ;
78
84
@@ -112,6 +118,11 @@ public Preference()
112
118
else if ( config . TryGetValue ( $ "gpg.{ GPGFormat . Value } .program", out var gpgProgram ) )
113
119
GPGExecutableFile = gpgProgram ;
114
120
121
+ if ( config . TryGetValue ( "http.sslverify" , out var sslVerify ) )
122
+ EnableHTTPSSLVerify = sslVerify == "true" ;
123
+ else
124
+ EnableHTTPSSLVerify = true ;
125
+
115
126
ver = new Commands . Version ( ) . Query ( ) ;
116
127
}
117
128
@@ -142,6 +153,7 @@ protected override void OnClosing(WindowClosingEventArgs e)
142
153
SetIfChanged ( config , "core.autocrlf" , CRLFMode != null ? CRLFMode . Value : null , null ) ;
143
154
SetIfChanged ( config , "commit.gpgsign" , EnableGPGCommitSigning ? "true" : "false" , "false" ) ;
144
155
SetIfChanged ( config , "tag.gpgsign" , EnableGPGTagSigning ? "true" : "false" , "false" ) ;
156
+ SetIfChanged ( config , "http.sslverify" , EnableHTTPSSLVerify ? "" : "false" , "" ) ;
145
157
SetIfChanged ( config , "gpg.format" , GPGFormat . Value , "openpgp" ) ;
146
158
147
159
if ( ! GPGFormat . Value . Equals ( "ssh" , StringComparison . Ordinal ) )
0 commit comments