dev: proxied server seems to fail because react-scripts binds on ipv4 and 'localhost' is resolved to ipv6

Massimo Melina committed Jun 19, 2022 at 16:19 UTC 91330c28692c4d1ceb52808bfdd59f8df7055f41
1 file changed +1 -1
server/src/serveGuiFiles.ts
+1 -1
@@ -56,7 +56,7 @@ function serveProxied(port: string | undefined, uri: string) { // used for devel
56 console.debug('proxied on port', port)
57 let proxy: Koa.Middleware
58 import('koa-better-http-proxy').then(lib =>
59 - proxy = lib.default('localhost:'+port, {
59 + proxy = lib.default('127.0.0.1:'+port, {
60 proxyReqPathResolver: (ctx) => ctx.path.endsWith('/') ? '/' : ctx.path,
61 userResDecorator(res, data, ctx) {
62 if (ctx.path.endsWith('/'))