# HG changeset patch # User Kim Alvefur # Date 1443352792 -7200 # Node ID ee2cedb0f6919dcd9fe5e3f3087c2ea72e226990 # Parent 8ef500508c599685f90ae2f8091c80aa1e600d7a mod_s2s_auth_fingerprint: Limit number of replacements instead of stripping extra separators diff -r 8ef500508c59 -r ee2cedb0f691 mod_s2s_auth_fingerprint/mod_s2s_auth_fingerprint.lua --- a/mod_s2s_auth_fingerprint/mod_s2s_auth_fingerprint.lua Thu Sep 24 07:22:11 2015 +0200 +++ b/mod_s2s_auth_fingerprint/mod_s2s_auth_fingerprint.lua Sun Sep 27 13:19:52 2015 +0200 @@ -12,7 +12,7 @@ end local function hashfmt(h) - return h:gsub("..",":%0"):sub(2):upper(); + return h:gsub("..","%0:", #h/2-1):upper(); end for host, set in pairs(module:get_option("s2s_trusted_fingerprints", {})) do