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
730fbe45
Commit
730fbe45
authored
Oct 31, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
53f36e65
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
client.go
tls/client.go
+2
-1
No files found.
tls/client.go
View file @
730fbe45
...
...
@@ -67,7 +67,7 @@ func (c *Client) Start() error {
for
k
,
v
:=
range
c
.
Item
.
Headers
{
req
.
Header
.
Set
(
k
,
v
)
}
c
.
Client
.
SetProxy
(
"http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600"
)
//
c.Client.SetProxy("http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600")
resp
,
err
:=
c
.
Client
.
Do
(
req
)
if
err
!=
nil
{
logrus
.
Error
(
"请求失败 "
,
err
.
Error
())
...
...
@@ -147,6 +147,7 @@ func NewClient(forWard ForwardItem, ios bool) (Client, error) {
//tls_client.WithRandomTLSExtensionOrder(),
//tls_client.WithProxyUrl("http://user:pass@host:port"),
}
logger
:=
tls_client
.
NewLogger
()
if
forWard
.
Debug
{
logger
=
tls_client
.
NewDebugLogger
(
tls_client
.
NewNoopLogger
())
...
...
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