mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-20 15:06:36 +00:00
fix(sora): 默认开启 TLS 指纹并支持显式关闭
This commit is contained in:
1 parent
be09188bda
commit
0832dfb32e
2 files changed
+6
-3
No files matched your search
@@ -1101,7 +1101,10 @@ func shouldAttemptSoraTokenRecover(statusCode int, rawURL string) bool {
|
||||
}
|
||||
|
||||
func (c *SoraDirectClient) doHTTP(req *http.Request, proxyURL string, account *Account) (*http.Response, error) {
|
||||
enableTLS := c != nil && c.cfg != nil && c.cfg.Gateway.TLSFingerprint.Enabled && !c.cfg.Sora.Client.DisableTLSFingerprint
|
||||
enableTLS := true
|
||||
if c != nil && c.cfg != nil && c.cfg.Sora.Client.DisableTLSFingerprint {
|
||||
enableTLS = false
|
||||
}
|
||||
if c.httpUpstream != nil {
|
||||
accountID := int64(0)
|
||||
accountConcurrency := 0
|
||||
|
||||
Reference in new issue
Block a user