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
ccd8a08e
Commit
ccd8a08e
authored
Nov 17, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
f8256d73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
client.go
tls/client.go
+4
-0
tls.go
tls/tls.go
+1
-0
No files found.
tls/client.go
View file @
ccd8a08e
...
@@ -40,6 +40,10 @@ func (c *Client) Start() error {
...
@@ -40,6 +40,10 @@ func (c *Client) Start() error {
delete
(
c
.
Item
.
Headers
,
"Cookie"
)
delete
(
c
.
Item
.
Headers
,
"Cookie"
)
}
}
if
c
.
Item
.
Debug
{
logrus
.
Infof
(
"body: %s
\n
cookie %s"
,
c
.
Item
.
Data
,
cookie
)
}
if
c
.
Item
.
Debug
==
false
&&
cookie
==
""
{
if
c
.
Item
.
Debug
==
false
&&
cookie
==
""
{
return
errors
.
New
(
"未设置cookie"
)
return
errors
.
New
(
"未设置cookie"
)
}
}
...
...
tls/tls.go
View file @
ccd8a08e
...
@@ -71,6 +71,7 @@ func Forward(c *gin.Context) {
...
@@ -71,6 +71,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
)
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