fix typos

master
red-001 2018-02-11 15:27:54 +00:00
parent 8e08da5c28
commit 96f9dbb148
No known key found for this signature in database
GPG Key ID: 0CBE03CD90F44222
5 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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)