aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/milter_headers.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lua/milter_headers.lua')
-rw-r--r--src/plugins/lua/milter_headers.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/lua/milter_headers.lua b/src/plugins/lua/milter_headers.lua
index 5d8d24c91..982b07dd0 100644
--- a/src/plugins/lua/milter_headers.lua
+++ b/src/plugins/lua/milter_headers.lua
@@ -422,11 +422,11 @@ local function milter_headers(task)
local os_string, link_type, uptime_min, distance =
task:get_mempool():get_variable('os_fingerprint',
- 'string, string, int, int');
+ 'string, string, double, double');
if not os_string then return end
- local value = string.format('%s, (up: %u min), (distance %i, link: %s)',
+ local value = string.format('%s, (up: %i min), (distance %i, link: %s)',
os_string, uptime_min, distance, link_type)
if settings.routines['x-os-fingerprint'].remove then
@@ -434,7 +434,7 @@ local function milter_headers(task)
= settings.routines['x-os-fingerprint'].remove
end
- add_header(settings.routines['x-os-fingerprint'].header, value)
+ add_header('x-os-fingerprint', value)
end
routines['x-spam-status'] = function()