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
ea8525b9
Commit
ea8525b9
authored
Aug 12, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cronet
parent
ae77a4bb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
libcronet.dylib
libcronet.dylib
+0
-0
run.sh
run.sh
+2
-2
client.go
tls/client.go
+7
-4
No files found.
libcronet.dylib
View file @
ea8525b9
No preview for this file type
run.sh
View file @
ea8525b9
...
@@ -3,6 +3,6 @@ apt update
...
@@ -3,6 +3,6 @@ apt update
apt
install
libnss3-dev
apt
install
libnss3-dev
apt
install
libglib2.0-dev
apt
install
libglib2.0-dev
#cd /root/src/js && npm i && nohup /usr/local/bin/node --expose-gc --max-old-space-size=256 cursor_mock.js > 1.log 2>&1 &
#cd /root/src/js && npm i && nohup /usr/local/bin/node --expose-gc --max-old-space-size=256 cursor_mock.js > 1.log 2>&1 &
export set
CGO_CFLAGS
=
"-I/
home/opt/cronet-forward
/cronet/include"
export set
CGO_CFLAGS
=
"-I/
Users/wang/chromium/src/out/Cronet
/cronet/include"
export set
CGO_LDFLAGS
=
"-Wl,-rpath,/
home/opt/cronet-forward/cronet -L/home/opt/cronet-forward
/cronet -lcronet"
export set
CGO_LDFLAGS
=
"-Wl,-rpath,/
Users/wang/chromium/src/out/Cronet/cronet -L/Users/wang/chromium/src/out/Cronet
/cronet -lcronet"
cd
/home/opt/tls-forward/
&&
go run main.go
cd
/home/opt/tls-forward/
&&
go run main.go
\ No newline at end of file
tls/client.go
View file @
ea8525b9
...
@@ -52,10 +52,13 @@ func (c *Client) Start() error {
...
@@ -52,10 +52,13 @@ func (c *Client) Start() error {
cks
:=
strings
.
Split
(
cookie
,
"; "
)
cks
:=
strings
.
Split
(
cookie
,
"; "
)
for
_
,
ck
:=
range
cks
{
for
_
,
ck
:=
range
cks
{
t
:=
strings
.
Index
(
ck
,
"="
)
t
:=
strings
.
Index
(
ck
,
"="
)
cookies
=
append
(
cookies
,
&
http
.
Cookie
{
if
t
!=
-
1
{
Name
:
ck
[
:
t
],
cookies
=
append
(
cookies
,
&
http
.
Cookie
{
Value
:
ck
[
t
+
1
:
],
Name
:
ck
[
:
t
],
})
Value
:
ck
[
t
+
1
:
],
})
}
}
}
c
.
Jar
.
SetCookies
(
uri
,
cookies
)
c
.
Jar
.
SetCookies
(
uri
,
cookies
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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