Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
cdn-node-checker
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
cdn-node-checker
Commits
8aee42aa
Commit
8aee42aa
authored
Jul 21, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a017b5da
Pipeline
#329
passed with stages
in 8 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
run.ts
run.ts
+4
-4
No files found.
run.ts
View file @
8aee42aa
...
...
@@ -74,7 +74,7 @@ class Checker {
console
.
log
(
`
${
this
.
id
}
=>
${
msg
}
`
);
}
async
getRecords
():
Promise
<
DomainRecordInfo
[]
>
{
console
.
log
(
`Fetching domain records of
${
config
.
domain
}
.`
)
this
.
message
(
`Fetching domain records of
${
config
.
domain
}
.`
)
const
res
:
DomainRecordInfo
[]
=
[];
for
(
let
i
=
1
;
;
++
i
)
{
const
ret
:
DomainRecordReturnResult
=
await
this
.
client
.
request
(
"
DescribeDomainRecords
"
,
{
...
...
@@ -82,7 +82,7 @@ class Checker {
PageNumber
:
i
,
PageSize
:
500
,
},
requestOption
);
console
.
log
(
ret
.
TotalCount
);
//this.message(`${ret.TotalCount} records found.`
);
if
(
!
ret
.
DomainRecords
.
Record
.
length
)
{
break
;
}
...
...
@@ -96,7 +96,7 @@ class Checker {
});
}))
{
const
port
=
_
.
find
(
config
.
cdnRecords
,
r
=>
record
.
RR
.
match
(
r
.
match
)).
port
;
console
.
log
(
`Found record
${
record
.
RR
}
.
${
config
.
domain
}
=>
${
record
.
Value
}
:
${
port
}
.`
);
this
.
message
(
`Found record
${
record
.
RR
}
.
${
config
.
domain
}
=>
${
record
.
Value
}
:
${
port
}
.`
);
res
.
push
({
record
,
port
});
}
}
...
...
@@ -122,7 +122,7 @@ class Checker {
this
.
message
(
`Node
${
address
}
:
${
port
}
Failed in checking
${
currentTestDomain
}
${
i
}
:
${
e
.
toString
()}
`
);
}
}
console
.
log
(
`Node
${
address
}
:
${
port
}
is bad.`
);
this
.
message
(
`Node
${
address
}
:
${
port
}
is bad.`
);
return
false
;
}
async
checkRecord
(
recordInfo
:
DomainRecordInfo
)
{
...
...
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