Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-akm
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
lcc-akm
Commits
333dcba4
Commit
333dcba4
authored
Mar 23, 2023
by
王明明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更换goquery
parent
e6f16d03
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
vueling.go
src/model/vueling.go
+1
-1
run.sh
src/run.sh
+1
-1
test.go
src/test/test.go
+7
-3
No files found.
src/model/vueling.go
View file @
333dcba4
...
...
@@ -12,7 +12,7 @@ func VueLing(carrierType, proxyUrl string) (*Akm, error) {
return
nil
,
err
}
for
i
:=
0
;
i
<
4
;
i
++
{
err
:=
akmClient
.
postSensor
(
i
)
err
:=
akmClient
.
postSensor
Js
(
i
)
if
err
!=
nil
{
akmClient
.
logger
.
WithError
(
err
)
.
Errorln
(
"请求失败"
)
...
...
src/run.sh
View file @
333dcba4
export
GOPROXY
=
https://goproxy.cn
#
cd /root/src/js && npm i && nohup /usr/local/bin/node --expose-gc --max-old-space-size=256 run.js > 1.log 2>&1 &
cd
/root/src/js
&&
npm i
&&
nohup
/usr/local/bin/node
--expose-gc
--max-old-space-size
=
256 run.js
>
1.log 2>&1 &
cd
/root/src
&&
go run main.go
--logname
=
$logname
\ No newline at end of file
src/test/test.go
View file @
333dcba4
...
...
@@ -8,6 +8,7 @@ import (
tls_client
"github.com/bogdanfinn/tls-client"
"io"
"io/ioutil"
"math/rand"
"net/url"
"strings"
"sync"
...
...
@@ -132,7 +133,7 @@ func actVY() {
t1
:=
time
.
Now
()
//resp, err := http.Post("http://lcc.unififi.com/akamai/gen",
resp
,
err
:=
http
.
Post
(
akmUrl
,
"application/json"
,
strings
.
NewReader
(
"{
\"
type
\"
:
\"
EW
\"
,
\"
proxy
\"
:
\"
"
+
px
+
"
\"
}"
))
"application/json"
,
strings
.
NewReader
(
"{
\"
type
\"
:
\"
VY
\"
,
\"
proxy
\"
:
\"
"
+
px
+
"
\"
}"
))
//"application/json", strings.NewReader("{\"type\": \"VY\", \"proxy\": \"http://127.0.0.1:8890\"}"))
//resp, err := http.Post("http://127.0.0.1:59001/akamai/gen", "application/json", strings.NewReader("{\"type\": \"u2\", \"proxy\": \"http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600\"}"))
if
err
!=
nil
{
...
...
@@ -162,14 +163,17 @@ func actnk() {
}
var
Debug
*
bool
var
px
=
"http://user-unifflcc-region-
us
:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600"
var
px
=
"http://user-unifflcc-region-
de
:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600"
var
akmUrl
=
"http://lcc.unififi.com/akamai/gen"
func
main
()
{
Debug
=
flag
.
Bool
(
"debug"
,
tru
e
,
"本地调试"
)
Debug
=
flag
.
Bool
(
"debug"
,
fals
e
,
"本地调试"
)
flag
.
Parse
()
if
*
Debug
{
px
=
"http://127.0.0.1:8890"
r
:=
rand
.
Intn
(
1149
)
+
10000
px
=
fmt
.
Sprintf
(
"http://user-unifflcc-region-de-sessid-%d-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600"
,
r
)
akmUrl
=
"http://127.0.0.1:59001/akamai/gen"
}
fmt
.
Println
(
px
)
...
...
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