Difegue / Tsukihi

🐦 Browser WebExtension for LANraragi.
MIT License
44 stars 3 forks source link

Server settings do not resolve Windows' hosts file #6

Open koma-cute opened 3 years ago

koma-cute commented 3 years ago

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
Difegue commented 3 years ago

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.

koma-cute commented 3 years ago

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.

Difegue commented 3 years ago

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

koma-cute commented 3 years ago

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