Skip to content

Commit

Permalink
✨optimization fingerprint
Browse files Browse the repository at this point in the history
  • Loading branch information
aurorax-neo committed Apr 23, 2024
2 parents f61cd21 + ea46986 commit 1596cb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ProxyPool/ProxyPool.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func GetProxyPoolInstance() *ProxyPool {
Instance.AddProxy(&Proxy{
Link: common.ParseUrl(px),
CanUseAt: common.GetTimestampSecond(0),
Ua: browser.Random(),
Ua: browser.Safari(),
Language: common.RandomLanguage(),
})
}
Expand Down Expand Up @@ -82,7 +82,7 @@ func (PP *ProxyPool) AddProxy(proxy *Proxy) {
func (PP *ProxyPool) timingUpdateProxy(nanosecond time.Duration) {
common.TimingTask(nanosecond, func() {
for _, px := range PP.Proxies {
px.Ua = browser.Random()
px.Ua = browser.Safari()
px.Language = common.RandomLanguage()
}
})
Expand Down
3 changes: 2 additions & 1 deletion chat/Gpt35.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"free-gpt3.5-2api/config"
"github.com/aurorax-neo/go-logger"
fhttp "github.com/bogdanfinn/fhttp"
"github.com/bogdanfinn/tls-client/profiles"
"github.com/google/uuid"
"io"
)
Expand Down Expand Up @@ -78,7 +79,7 @@ func (G *Gpt35) getNewRequestClient(newType int) error {
return fmt.Errorf(errStr)
}
// 请求客户端
G.RequestClient = RequestClient.NewTlsClient(300, RequestClient.RandomClientProfile())
G.RequestClient = RequestClient.NewTlsClient(300, profiles.Safari_16_0)
if G.RequestClient == nil {
errStr := fmt.Sprint("RequestClient is nil")
logger.Logger.Debug(errStr)
Expand Down

0 comments on commit 1596cb5

Please sign in to comment.