Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxScanck
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
yaozheng
wxScanck
Commits
9fdb4122
Commit
9fdb4122
authored
Apr 15, 2022
by
TesterYao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f40c9153
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ssp.py
ssp.py
+4
-1
No files found.
ssp.py
View file @
9fdb4122
...
...
@@ -32,7 +32,10 @@ class SSP:
def
post_block_list
(
self
,
b_url
):
LOG
.
info
(
'SSP上报被封域名:'
+
b_url
)
if
b_url
.
startswith
(
'http'
):
r
=
self
.
session
.
get
(
url
=
self
.
host
+
self
.
block_list_url
+
b_url
.
split
(
'https://'
)[
1
]
+
'&resulting=1'
)
else
:
r
=
self
.
session
.
get
(
url
=
self
.
host
+
self
.
block_list_url
+
b_url
+
'&resulting=1'
)
LOG
.
info
(
'上报结果:'
+
r
.
text
)
if
r
.
status_code
==
200
and
r
.
json
()
.
get
(
'desc'
)
==
"成功"
:
LOG
.
info
(
'上报成功:'
+
r
.
text
)
...
...
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