From aeadf4f3e2ba87b5bf2fa71cf927132a95836cb1 Mon Sep 17 00:00:00 2001 From: MarcUs7 <96580944+MarcUs7i@users.noreply.github.com> Date: Thu, 2 Jan 2025 21:55:40 +0100 Subject: [PATCH] removed actual bugs --- watcher.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/watcher.js b/watcher.js index 188d922..9f23f78 100644 --- a/watcher.js +++ b/watcher.js @@ -216,8 +216,7 @@ while(true) { try { if (endpoint.url.includes('.onion')) { - let [host, port] = endpoint.url.split(':'); - host = host.replace('http://', ''); + let [host, port] = endpoint.url.replace('http://', '').split(':'); host = endpoint.id.includes('-POWERFUL') ? '192.168.0.106' : '127.0.0.1'; const result = await checkOnionService(host, port || 8333);