mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 03:50:12 +03:00
Removed excess space around function
Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
parent
7a13b959a3
commit
5d6770c0db
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ exports.tcping = function (hostname, port) {
|
||||||
*/
|
*/
|
||||||
exports.ping = async (hostname, size = 56) => {
|
exports.ping = async (hostname, size = 56) => {
|
||||||
try {
|
try {
|
||||||
return await exports.pingAsync(hostname, false, size );
|
return await exports.pingAsync(hostname, false, size);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// If the host cannot be resolved, try again with ipv6
|
// If the host cannot be resolved, try again with ipv6
|
||||||
if (e.message.includes("service not known")) {
|
if (e.message.includes("service not known")) {
|
||||||
|
|
Loading…
Reference in a new issue