mirror of
https://github.com/Grocel/3D-Stream-Radio.git
synced 2025-03-04 03:03:07 -05:00
Fixed Radio being broken if cfc_cl_http_whitelist was installed.
This commit is contained in:
parent
eabc71f73e
commit
24fa680369
@ -691,29 +691,33 @@ if istable(CFCHTTP) then
|
||||
-- Handle CFC HTTP Whitelist error cases
|
||||
-- https://github.com/CFC-Servers/cfc_cl_http_whitelist
|
||||
|
||||
LIB.AddStreamErrorCode({
|
||||
id = CFCHTTP.BASS_ERROR_BLOCKED_URI,
|
||||
name = "STREAM_ERROR_CFCHTTP_BLOCKED_URI",
|
||||
description = "URI has been blocked by CFC HTTP Whitelist",
|
||||
helptext = [[
|
||||
if CFCHTTP.BASS_ERROR_BLOCKED_URI then
|
||||
LIB.AddStreamErrorCode({
|
||||
id = CFCHTTP.BASS_ERROR_BLOCKED_URI,
|
||||
name = "STREAM_ERROR_CFCHTTP_BLOCKED_URI",
|
||||
description = "URI has been blocked by CFC HTTP Whitelist",
|
||||
helptext = [[
|
||||
The server has blocked this URL via CFC HTTP Whitelist to prevent abuse.
|
||||
You can ask an admin to whitelist the URL above in their CFC tool.
|
||||
|
||||
Keep in mind that there is probably a reason why it is forbidden on this server.
|
||||
]],
|
||||
})
|
||||
})
|
||||
end
|
||||
|
||||
LIB.AddStreamErrorCode({
|
||||
id = CFCHTTP.BASS_ERROR_BLOCKED_CONTENT,
|
||||
name = "STREAM_ERROR_CFCHTTP_BLOCKED_CONTENT",
|
||||
description = "Content has been blocked by CFC HTTP Whitelist",
|
||||
helptext = [[
|
||||
if CFCHTTP.BASS_ERROR_BLOCKED_CONTENT then
|
||||
LIB.AddStreamErrorCode({
|
||||
id = CFCHTTP.BASS_ERROR_BLOCKED_CONTENT,
|
||||
name = "STREAM_ERROR_CFCHTTP_BLOCKED_CONTENT",
|
||||
description = "Content has been blocked by CFC HTTP Whitelist",
|
||||
helptext = [[
|
||||
The server has blocked this content via CFC HTTP Whitelist to prevent abuse.
|
||||
You can ask an admin to whitelist the content from the URL above in their CFC tool.
|
||||
|
||||
Keep in mind that there is probably a reason why it is forbidden on this server.
|
||||
]],
|
||||
})
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
if CLIENT then
|
||||
|
@ -1,2 +1,2 @@
|
||||
423
|
||||
1689800322
|
||||
424
|
||||
1689867916
|
||||
|
Loading…
Reference in New Issue
Block a user