Comparison

util/prosodyctl/check.lua @ 12488:3183f358a88f 0.12

util.prosodyctl.check: turn: Report lack of TURN services as a problem #1749 Rationale: It seems unlikely that someone who has not configured any TURN service runs 'prosodyctl check turn' expecting this to be okay.
author Kim Alvefur <zash@zash.se>
date Tue, 03 May 2022 19:36:17 +0200
parent 12466:9ee41552bca0
child 12520:bb5f772b3189
comparison
equal deleted inserted replaced
12479:4d36fbcdd210 12488:3183f358a88f
1275 1275
1276 if what == "turn" then 1276 if what == "turn" then
1277 local count = it.count(pairs(turn_services)); 1277 local count = it.count(pairs(turn_services));
1278 if count == 0 then 1278 if count == 0 then
1279 print("Error: Unable to find any TURN services configured. Enable mod_turn_external!"); 1279 print("Error: Unable to find any TURN services configured. Enable mod_turn_external!");
1280 ok = false;
1280 else 1281 else
1281 print("Identified "..tostring(count).." TURN services."); 1282 print("Identified "..tostring(count).." TURN services.");
1282 print(""); 1283 print("");
1283 end 1284 end
1284 end 1285 end