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
6eaa2127
Commit
6eaa2127
authored
Jan 10, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
每次请求后关闭连接
parent
abb940f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
client.go
tls/client.go
+4
-4
No files found.
tls/client.go
View file @
6eaa2127
...
@@ -158,13 +158,13 @@ func NewClient(forWard ForwardItem, ios bool) (Client, error) {
...
@@ -158,13 +158,13 @@ func NewClient(forWard ForwardItem, ios bool) (Client, error) {
tls_client
.
WithProxyUrl
(
forWard
.
Proxy
),
tls_client
.
WithProxyUrl
(
forWard
.
Proxy
),
//tls_client.WithForceHttp1(),
//tls_client.WithForceHttp1(),
tls_client
.
WithCookieJar
(
jar
),
tls_client
.
WithCookieJar
(
jar
),
//
tls_client.WithRandomTLSExtensionOrder(),
tls_client
.
WithRandomTLSExtensionOrder
(),
//tls_client.WithProxyUrl("http://user:pass@host:port"),
//tls_client.WithProxyUrl("http://user:pass@host:port"),
tls_client
.
WithInsecureSkipVerify
(),
tls_client
.
WithInsecureSkipVerify
(),
}
}
if
forWard
.
RandomTls
{
//
if forWard.RandomTls {
options
=
append
(
options
,
tls_client
.
WithRandomTLSExtensionOrder
())
options
=
append
(
options
,
tls_client
.
WithRandomTLSExtensionOrder
())
}
//
}
logger
:=
tls_client
.
NewNoopLogger
()
logger
:=
tls_client
.
NewNoopLogger
()
if
forWard
.
Debug
{
if
forWard
.
Debug
{
logger
=
tls_client
.
NewDebugLogger
(
tls_client
.
NewDebugLogger
(
tls_client
.
NewLogger
()))
logger
=
tls_client
.
NewDebugLogger
(
tls_client
.
NewDebugLogger
(
tls_client
.
NewLogger
()))
...
...
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