Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
0832dfb3
Commit
0832dfb3
authored
Feb 19, 2026
by
yangjianbo
Browse files
fix(sora): 默认开启 TLS 指纹并支持显式关闭
parent
be09188b
Changes
2
Show whitespace changes
Inline
Side-by-side
backend/internal/service/account_test_service.go
View file @
0832dfb3
...
...
@@ -781,9 +781,9 @@ func parseSoraRemainingSummary(body []byte) string {
func
(
s
*
AccountTestService
)
shouldEnableSoraTLSFingerprint
()
bool
{
if
s
==
nil
||
s
.
cfg
==
nil
{
return
fals
e
return
tru
e
}
return
s
.
cfg
.
Gateway
.
TLSFingerprint
.
Enabled
&&
!
s
.
cfg
.
Sora
.
Client
.
DisableTLSFingerprint
return
!
s
.
cfg
.
Sora
.
Client
.
DisableTLSFingerprint
}
func
isCloudflareChallengeResponse
(
statusCode
int
,
body
[]
byte
)
bool
{
...
...
backend/internal/service/sora_client.go
View file @
0832dfb3
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment