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
1730ab23
Commit
1730ab23
authored
Jan 09, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
每次请求后关闭连接
parent
e08009a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
client.go
tls/client.go
+3
-1
tls.go
tls/tls.go
+1
-0
No files found.
tls/client.go
View file @
1730ab23
...
@@ -155,7 +155,9 @@ func NewClient(forWard ForwardItem, ios bool) (Client, error) {
...
@@ -155,7 +155,9 @@ func NewClient(forWard ForwardItem, ios bool) (Client, error) {
//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
{
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
()))
...
...
tls/tls.go
View file @
1730ab23
...
@@ -17,6 +17,7 @@ type ForwardItem struct {
...
@@ -17,6 +17,7 @@ type ForwardItem struct {
AllowRedirects
bool
`json:"allow_redirects,omitempty"`
AllowRedirects
bool
`json:"allow_redirects,omitempty"`
Verify
bool
`json:"verify,omitempty"`
Verify
bool
`json:"verify,omitempty"`
Debug
bool
`json:"debug"`
Debug
bool
`json:"debug"`
RandomTls
bool
`json:"random_tls"`
}
}
func
ForwardIOS
(
c
*
gin
.
Context
)
{
func
ForwardIOS
(
c
*
gin
.
Context
)
{
...
...
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