equal
deleted
inserted
replaced
6 local jid = require "prosody.util.jid"; |
6 local jid = require "prosody.util.jid"; |
7 local array = require "prosody.util.array"; |
7 local array = require "prosody.util.array"; |
8 local set = require "prosody.util.set"; |
8 local set = require "prosody.util.set"; |
9 |
9 |
10 local default_host = module:get_option_string("external_service_host", module.host); |
10 local default_host = module:get_option_string("external_service_host", module.host); |
11 local default_port = module:get_option_number("external_service_port"); |
11 local default_port = module:get_option_integer("external_service_port", nil, 1, 65535); |
12 local default_secret = module:get_option_string("external_service_secret"); |
12 local default_secret = module:get_option_string("external_service_secret"); |
13 local default_ttl = module:get_option_period("external_service_ttl", "1 day"); |
13 local default_ttl = module:get_option_period("external_service_ttl", "1 day"); |
14 |
14 |
15 local configured_services = module:get_option_array("external_services", {}); |
15 local configured_services = module:get_option_array("external_services", {}); |
16 |
16 |