aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-03-05 20:34:24 +0000
committerMatthew Wild <mwild1@gmail.com>2022-03-05 20:34:24 +0000
commitf7adea50405a26cd92ee43ee1c6d124d1d7bde19 (patch)
treef67f9c840cdf425aac2972946a2ae3541a0f51f6
parent750f3a78d5574c5b5fedf3972d7a9e4fc699d031 (diff)
downloadprosody-f7adea50405a26cd92ee43ee1c6d124d1d7bde19.tar.gz
prosody-f7adea50405a26cd92ee43ee1c6d124d1d7bde19.zip
prosodyctl: check turn: improve warning text to suggest issues
-rw-r--r--util/prosodyctl/check.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/prosodyctl/check.lua b/util/prosodyctl/check.lua
index 6f22ab17..7400ba07 100644
--- a/util/prosodyctl/check.lua
+++ b/util/prosodyctl/check.lua
@@ -122,7 +122,7 @@ local function check_turn_service(turn_service, ping_service)
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 @@ local function check_turn_service(turn_service, ping_service)
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;