diff options
-rw-r--r-- | util/prosodyctl/check.lua | 6 |
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; |