mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
changed to check 127.0.0.1 because that's what it binds to
This commit is contained in:
@@ -396,14 +396,14 @@ async function getHasIP() {
|
|||||||
for (const info of iface) {
|
for (const info of iface) {
|
||||||
if (info.family === 'IPv6') {
|
if (info.family === 'IPv6') {
|
||||||
hasIPv6 = true;
|
hasIPv6 = true;
|
||||||
if (info.internal === true) {
|
if (info.address === '::1') {
|
||||||
hasIPv6Local = true;
|
hasIPv6Local = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info.family === 'IPv4') {
|
if (info.family === 'IPv4') {
|
||||||
hasIPv4 = true;
|
hasIPv4 = true;
|
||||||
if (info.internal === true) {
|
if (info.address === '127.0.0.1') {
|
||||||
hasIPv4Local = true;
|
hasIPv4Local = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user