Tsukihi icon indicating copy to clipboard operation
Tsukihi copied to clipboard

Server settings do not resolve Windows' hosts file

Open koma-cute opened this issue 3 years ago • 4 comments

Setting the server settings to a domain defined only in the Windows hosts file results in a "TypeError: NetworkError when attempting to fetch resource". Visiting the domain in browser works fine, as does using the IP in Tsukihi.

Example hosts:

10.1.1.1 lrr.lan

koma-cute avatar May 04 '21 18:05 koma-cute

I think this is sadly more of a browser problem, the extension itself only uses very standard JS to negotiate connection to the server; I'm not sure why connections emitted by an extension would bypass the hosts file somehow.

Does that happen on every browser? Haven't tried it myself.

Difegue avatar May 04 '21 19:05 Difegue

Not really a huge deal I guess, just the behavior was a bit weird. It doesn't seem to happen on Chrome - I was using Firefox.

koma-cute avatar May 04 '21 21:05 koma-cute

Thinking back on it, you might have DoH enabled on FF, which does not go through the hosts file iirc: https://stackoverflow.com/questions/37452361/why-is-my-hosts-file-entry-being-ignored-by-the-browser

Difegue avatar May 05 '21 13:05 Difegue

I do, but disabling it doesn't fix the issue.

koma-cute avatar May 05 '21 13:05 koma-cute