File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ internal Request PrepareRequest(Request request)
6969 request . DisableHttp3 ??= Options . DisableHttp3 ;
7070 request . WithProtocolRacing ??= Options . WithProtocolRacing ;
7171 request . EuckrResponse ??= Options . EuckrResponse ;
72-
72+ request . ServerNameOverwrite ??= Options . ServerNameOverwrite ;
7373
7474 if ( request . CustomTlsClient != null )
7575 request . TlsClientIdentifier = default ! ;
Original file line number Diff line number Diff line change @@ -66,7 +66,11 @@ public TlsClientBuilder WithDisableIPV4(bool disabled = true)
6666 _options . DisableIPV4 = disabled ;
6767 return this ;
6868 }
69-
69+ public TlsClientBuilder WithServerNameOverwrite ( string serverName )
70+ {
71+ _options . ServerNameOverwrite = serverName ;
72+ return this ;
73+ }
7074 public TlsClientBuilder WithDisableIPV6 ( bool disabled = true )
7175 {
7276 _options . DisableIPV6 = disabled ;
@@ -145,6 +149,12 @@ public TlsClientBuilder WithForceHttp1(bool enabled = true)
145149 return this ;
146150 }
147151
152+ public TlsClientBuilder WithDisableHttp3 ( bool enabled = true )
153+ {
154+ _options . DisableHttp3 = enabled ;
155+ return this ;
156+ }
157+
148158 public TlsClientBuilder WithRandomTLSExtensionOrder ( bool enabled = true )
149159 {
150160 _options . WithRandomTLSExtensionOrder = enabled ;
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ public class TlsClientOptions
1313 public string ? ProxyURL { get ; set ; }
1414 public bool IsRotatingProxy { get ; set ; } = false ;
1515 public TimeSpan Timeout { get ; set ; } = TimeSpan . FromSeconds ( 60 ) ;
16+ public string ? ServerNameOverwrite { get ; set ; }
1617 public bool FollowRedirects { get ; set ; } = false ;
1718 public bool InsecureSkipVerify { get ; set ; } = false ;
1819 public bool DisableIPV4 { get ; set ; } = false ;
You can’t perform that action at this time.
0 commit comments