mirror of
https://github.com/marcus-alicia/iRedAdmin-Pro-SQL.git
synced 2026-06-04 03:19:42 +00:00
Add files via upload
This commit is contained in:
14
controllers/iredapd/senderscore.py
Normal file
14
controllers/iredapd/senderscore.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from controllers import decorators
|
||||
from controllers.utils import api_render
|
||||
from libs.iredapd import wblist_senderscore
|
||||
|
||||
|
||||
class WhitelistIPForSenderScore:
|
||||
@decorators.require_global_admin
|
||||
def PUT(self, ip):
|
||||
"""Whitelist given IP address for senderscore.
|
||||
|
||||
curl -X PUT -i -b cookie.txt -d "ip=x.x.x.x" https://<server>/api/wblist/senderscore/whitelist/<ip>
|
||||
"""
|
||||
qr = wblist_senderscore.whitelist_ips(ips=[ip])
|
||||
return api_render(qr)
|
||||
Reference in New Issue
Block a user