Added optional onionIP for onion service checks

This commit is contained in:
MarcUs7i 2025-03-11 17:52:33 +01:00
parent df871a95f1
commit 4ef82b6a18
2 changed files with 6 additions and 6 deletions

View file

@ -224,8 +224,8 @@ while(true) {
try {
if (endpoint.url.includes('.onion')) {
let [host, port] = endpoint.url.replace('http://', '').split(':');
host = endpoint.id.includes('-POWERFUL') ? '192.168.0.105' : '127.0.0.1';
const result = await checkOnionService(host, port || 8333);
host = endpoint.onionIP || '127.0.0.1';
const result = await checkOnionService(host, port || 80);
endpointStatus.t = Date.now();
endpointStatus.dur = 0;