fix typos
parent
8e08da5c28
commit
96f9dbb148
2
api.lua
2
api.lua
|
@ -143,7 +143,7 @@ end)
|
|||
|
||||
local datasources = {}
|
||||
-- todo: add security checks to this and allow other mods to use it
|
||||
function block_vps.regsiter_datasource(name, api)
|
||||
function block_vps.register_datasource(name, api)
|
||||
setmetatable(api, {__index = api_base})
|
||||
api.name = name
|
||||
datasources[name] = api
|
||||
|
|
2
init.lua
2
init.lua
|
@ -11,7 +11,7 @@ dofile(mod_path .. "/iphub.lua")
|
|||
dofile(mod_path .. "/iphub_legacy.lua")
|
||||
dofile(mod_path .. "/nastyhosts.lua")
|
||||
-- block other mods from register data source till better security code can be written
|
||||
block_vps.regsiter_datasource = nil
|
||||
block_vps.register_datasource = nil
|
||||
|
||||
local function create_reject_message(ip, isp)
|
||||
local message
|
||||
|
|
|
@ -56,4 +56,4 @@ function ip_hub_api:handle_response_data(ip, data_json)
|
|||
return info
|
||||
end
|
||||
|
||||
block_vps.regsiter_datasource("iphub", ip_hub_api)
|
||||
block_vps.register_datasource("iphub", ip_hub_api)
|
|
@ -55,4 +55,4 @@ function ip_hub_api:handle_response_data(ip, data_json)
|
|||
return info
|
||||
end
|
||||
|
||||
block_vps.regsiter_datasource("iphub_legacy", ip_hub_api)
|
||||
block_vps.register_datasource("iphub_legacy", ip_hub_api)
|
|
@ -31,4 +31,4 @@ function nasty_hosts_api:handle_response_data(ip, data_json)
|
|||
return info
|
||||
end
|
||||
|
||||
block_vps.regsiter_datasource("nastyhosts", nasty_hosts_api)
|
||||
block_vps.register_datasource("nastyhosts", nasty_hosts_api)
|
Loading…
Reference in New Issue