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
b281aa38
Commit
b281aa38
authored
Aug 07, 2024
by
wang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/cronet' into cronet
parents
4fc7ae74
b193c9bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
1 deletion
+2
-1
libcronet.dylib
libcronet.dylib
+0
-0
client.go
tls/client.go
+1
-0
tls.go
tls/tls.go
+1
-1
No files found.
libcronet.dylib
0 → 100755
View file @
b281aa38
File added
tls/client.go
View file @
b281aa38
...
@@ -149,6 +149,7 @@ func NewClient(forWard ForwardItem, ios bool) (Client, error) {
...
@@ -149,6 +149,7 @@ func NewClient(forWard ForwardItem, ios bool) (Client, error) {
engineParams
.
SetEnableHTTP2
(
true
)
engineParams
.
SetEnableHTTP2
(
true
)
engineParams
.
SetEnableQuic
(
false
)
engineParams
.
SetEnableQuic
(
false
)
engineParams
.
SetEnableBrotli
(
true
)
engineParams
.
SetEnableBrotli
(
true
)
engineParams
.
SetEnableCheckResult
(
false
)
t
:=
cronet
.
NewCronetTransport
(
engineParams
,
true
)
t
:=
cronet
.
NewCronetTransport
(
engineParams
,
true
)
//t.Engine.StartNetLogToFile("./1.log", true)
//t.Engine.StartNetLogToFile("./1.log", true)
//ConfigureClientCertificate(&t.Engine, certPath, keyPath, []string{urlArg.Host, proxyArg.Host})
//ConfigureClientCertificate(&t.Engine, certPath, keyPath, []string{urlArg.Host, proxyArg.Host})
...
...
tls/tls.go
View file @
b281aa38
...
@@ -79,7 +79,7 @@ func Forward(c *gin.Context) {
...
@@ -79,7 +79,7 @@ func Forward(c *gin.Context) {
return
return
}
}
logrus
.
Infof
(
"开始转发 url: %s proxy: %s"
,
forWard
.
Url
,
forWard
.
Proxy
)
logrus
.
Infof
(
"开始转发 url: %s proxy: %s"
,
forWard
.
Url
,
forWard
.
Proxy
)
fmt
.
Sprintf
(
"%v
\n
"
,
forWard
.
Headers
)
t1
:=
time
.
Now
()
t1
:=
time
.
Now
()
// 开始转发
// 开始转发
client
,
err
:=
NewClient
(
forWard
,
false
)
client
,
err
:=
NewClient
(
forWard
,
false
)
...
...
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