goproxy icon indicating copy to clipboard operation
goproxy copied to clipboard

Connecting to localhost issue: WARN dead loop detected

Open 0x0OZ opened this issue 11 months ago • 3 comments

When trying to access the ip 127.0.0.1 or a hostname resolving to it, I get the warning

Image

I tried running goproxy as socks proxy and HTTP proxy..

Not sure if that's bug related to firefox or the tool itself

0x0OZ avatar Mar 06 '25 11:03 0x0OZ

the domain format must be a normal one, must contains the dot.

snail007 avatar Mar 06 '25 23:03 snail007

Okay! I wonder why, but thanks. The issue was resolved when using a dotted domain.

0x0OZ avatar Mar 07 '25 09:03 0x0OZ

Okay so I haven't noticed until now, but when the proxy resolves this fake local domain, it doesn't try to connect to localhost but rather to the interface IP.

So I have an app that is being hosted on localhost not 127.0.0.1 and if I try to connect to the virtual domain e.g oz.oz which is resolving to 127.0.0.1 To connect to that host, I need to try to access localhost not 127.0.0.1

Image

Is there a way to go around this?

0x0OZ avatar Mar 11 '25 22:03 0x0OZ