Software /
code /
prosody
Comparison
util/prosodyctl/check.lua @ 12381:d999c2b3e289
prosodyctl: check turn: fix formatting of multiple warnings
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 05 Mar 2022 20:31:17 +0000 |
parent | 12380:3a702f37e87c |
child | 12382:574cf096a426 |
comparison
equal
deleted
inserted
replaced
12380:3a702f37e87c | 12381:d999c2b3e289 |
---|---|
1248 for turn_id, turn_service in pairs(turn_services) do | 1248 for turn_id, turn_service in pairs(turn_services) do |
1249 print("Testing TURN service "..turn_id.."..."); | 1249 print("Testing TURN service "..turn_id.."..."); |
1250 | 1250 |
1251 local result = check_turn_service(turn_service, opts.ping); | 1251 local result = check_turn_service(turn_service, opts.ping); |
1252 if #result.warnings > 0 then | 1252 if #result.warnings > 0 then |
1253 print(("%d warnings:\n\n "):format(#result.warnings)); | 1253 print(("%d warnings:\n"):format(#result.warnings)); |
1254 print(table.concat(result.warnings, "\n ")); | 1254 print(" "..table.concat(result.warnings, "\n ")); |
1255 print(""); | |
1255 end | 1256 end |
1256 | 1257 |
1257 if opts.verbose then | 1258 if opts.verbose then |
1258 if result.external_ip then | 1259 if result.external_ip then |
1259 print(("External IP: %s"):format(result.external_ip.address)); | 1260 print(("External IP: %s"):format(result.external_ip.address)); |