mirror of
https://github.com/Kizuren/statusPage.git
synced 2025-12-28 10:04:20 +01:00
Added optional onionIP for onion service checks
This commit is contained in:
parent
df871a95f1
commit
4ef82b6a18
2 changed files with 6 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue