Software /
code /
prosody
Changeset
12383:a9b6ed86b573
prosodyctl: check turn: improve warning text to suggest issues
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 05 Mar 2022 20:34:24 +0000 |
parents | 12382:574cf096a426 |
children | 12384:53b4549c2209 |
files | util/prosodyctl/check.lua |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/prosodyctl/check.lua Sat Mar 05 20:32:47 2022 +0000 +++ b/util/prosodyctl/check.lua Sat Mar 05 20:34:24 2022 +0000 @@ -122,7 +122,7 @@ local nonce = pre_result:get_attribute("nonce"); if not realm then - table.insert(result.warnings, "TURN server did not return an authentication realm"); + table.insert(result.warnings, "TURN server did not return an authentication realm. Is authentication enabled?"); end if not nonce then table.insert(result.warnings, "TURN server did not return a nonce"); @@ -245,6 +245,10 @@ return result; end + if result.external_ip.address ~= result.external_ip_pong.address then + table.insert(result.warnings, "TURN external IP vs relay address mismatch! Is the TURN server behind a NAT and misconfigured?"); + end + -- return result;