Fix bug IPv6 ping

This commit is contained in:
JonasGhost authored and Zaid Abdulla committed 2021-01-02 20:29:29 -08:00
1 parent 13ff0724e7
commit 5f44f6597c
1 file changed
+1
+1
View File
@@ -35,6 +35,7 @@ export function ping(
callback: (err: Error, res?: PingResult, stdout?: string) => void
): void {
let cmd: string, parseRegExp1: RegExp, parseRegExp2: RegExp;
host = host.replace("[", "").replace("]", "");
switch (platform()) {
case "linux":
cmd = `ping -w 1 -i 0.2 -c 3 ${host}`;