mirror of
https://github.com/CFC-Servers/cfc_cl_http_whitelist.git
synced 2025-03-04 03:03:18 -05:00
fix bugs, fix items not removing from list, fix patterns
This commit is contained in:
parent
031fd57a70
commit
1cece9e125
@ -2,7 +2,7 @@ CFCHTTP = CFCHTTP or {}
|
||||
CFCHTTP.allowedAddresses = {
|
||||
-- dropbox
|
||||
["dl.dropboxusercontent.com"] = {allowed=true},
|
||||
["dl.dropbox.com"] = {allowed=true}
|
||||
["dl.dropbox.com"] = {allowed=true},
|
||||
["www.dropbox.com"] = {allowed=true},
|
||||
|
||||
["onedrive.live.com"] = {allowed=true},
|
||||
@ -47,8 +47,8 @@ CFCHTTP.allowedAddresses = {
|
||||
["translate.google.com"] = {allowed=true},
|
||||
["api.foxorsomething.net"] = {allowed=true},
|
||||
|
||||
["[cdn[%w-_]*.discordapp%.com/(.+)]"] = {allowed=true, isPattern=true},
|
||||
["mages-([%w%-]+)%.discordapp%.net/external/(.+)"] = {allowed=true, isPattern=true},
|
||||
["cdn[%w-_]*.discordapp%.com/(.+)"] = {allowed=true, isPattern=true},
|
||||
["images-([%w%-]+)%.discordapp%.net/external/(.+)"] = {allowed=true, isPattern=true},
|
||||
["i([%w-_]+)%.tinypic%.com/(.+)"] = {allowed=true, isPattern=true},
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
local function removeByValue( listView, value )
|
||||
for i, line in ipairs( listView:GetLines() ) do
|
||||
for i, line in pairs( listView:GetLines() ) do
|
||||
if line:GetValue( 1 ) == value then
|
||||
listView:RemoveLine( i )
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user