Software /
code /
prosody
File
spec/scansion/uptime.scs @ 13121:332e95f75dbb 0.12
util.prosodyctl.check: Fix error where hostname can't be turned into A label
Where gethostname or tohostname returns an invalid name, e.g. containing
underscores or something, to_ascii would reject this and return nil,
which triggers an error in the dns lookup.
Reported by prova2 in the chat, for whom tohostname returned a long name
containing underscores.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 31 May 2023 14:08:19 +0200 |
parent | 10731:8e2f9d0fa72d |
line wrap: on
line source
# XEP-0012: Last Activity / mod_uptime [Client] Romeo jid: romeo@localhost password: password ----- Romeo connects Romeo sends: <iq id='a' type='get' to='localhost'> <query xmlns='jabber:iq:last'/> </iq> Romeo receives: <iq type='result' id='a' from='localhost'> <query xmlns='jabber:iq:last' seconds='0'/> </iq> Romeo disconnects