fix: usa localhost em vez de 127.0.0.1 para conectar ao Kernel
No container Docker, 127.0.0.1 pode não resolver corretamente para o próprio container. localhost é mais confiável.
This commit is contained in:
parent
71e2b654bd
commit
524a049d03
|
|
@ -29,7 +29,7 @@ async function fetchRegistryServicesWithRetry(maxRetries = 3, delay = 500): Prom
|
||||||
async function fetchRegistryServicesOnce(): Promise<any[] | null> {
|
async function fetchRegistryServicesOnce(): Promise<any[] | null> {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
const options = {
|
const options = {
|
||||||
hostname: '127.0.0.1',
|
hostname: 'localhost',
|
||||||
port: 5001,
|
port: 5001,
|
||||||
path: '/api/registry/services',
|
path: '/api/registry/services',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue