scripts for setup, nginx and service, fixing issue with server shutdown when both are running
This commit is contained in:
@@ -200,10 +200,10 @@
|
||||
// Detect current IP address
|
||||
async function detectCurrentIP() {
|
||||
try {
|
||||
const response = await fetch('https://api.ipify.org?format=json');
|
||||
const response = await fetch('https://ifconfig.me/all.json');
|
||||
const data = await response.json();
|
||||
document.getElementById('current-ip').innerHTML =
|
||||
`<span class="text-primary">${data.ip}</span>`;
|
||||
`<span class="text-primary">${data.ip_addr}</span>`;
|
||||
} catch (error) {
|
||||
document.getElementById('current-ip').innerHTML =
|
||||
'<span class="text-muted">Unable to detect</span>';
|
||||
|
||||
Reference in New Issue
Block a user