Fallback to /bin/ping if ping is not found

This commit is contained in:
Louis Lam 2023-01-12 01:04:58 +08:00
parent cc4ed308b0
commit d9f12a6376
3 changed files with 28 additions and 26 deletions

View file

@ -1,5 +1,5 @@
const tcpp = require("tcp-ping");
const ping = require("ping");
const ping = require("@louislam/ping");
const { R } = require("redbean-node");
const { log, genSecret } = require("../src/util");
const passwordHash = require("./password-hash");