Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
T
tls-forward
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangmingming
tls-forward
Commits
fe042eeb
Commit
fe042eeb
authored
Dec 20, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
7acaa64b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
client.go
tls/client.go
+2
-5
No files found.
tls/client.go
View file @
fe042eeb
...
...
@@ -13,7 +13,6 @@ import (
"github.com/imroc/req/v3"
"github.com/sirupsen/logrus"
utls
"github.com/refraction-networking/utls"
"io/ioutil"
"math/big"
"net/http"
...
...
@@ -141,13 +140,11 @@ func RandRandom(a int64) int64 {
}
func
NewClient
(
forWard
ForwardItem
,
ios
bool
)
(
Client
,
error
)
{
client
:=
req
.
C
()
.
SetUserAgent
(
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
)
.
SetTLSFingerprintChrome
()
client
.
SetTLSFingerprint
(
utls
.
HelloChrome_115_PQ_PSK
)
client
:=
req
.
C
()
.
DisableCompression
()
.
EnableForceHTTP2
()
if
forWard
.
Debug
{
client
=
client
.
EnableDumpAll
()
}
client
.
SetProxyURL
(
forWard
.
Proxy
)
return
Client
{
Client
:
client
,
Item
:
forWard
},
nil
}
...
...
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