Epiphany ignores /etc/hosts and /etc/hostname on Pinephone / Mobian
I currently writing several webapps on the Pinephone using the last version of Mobian. On the server side, i use a self-signed certificate to handle my websocket in wss://mobian:2020, using Node.js. On the client side, my webapps are all running ok with Firefox, using the URLs "https://mobian/app" or "https://mobian.local/app". When the Pinephone is connected using an external RJ45 adapter, Epiphany find my webapps too, using "https://mobian/app" or "https://mobian.local/app". BUT when the Pinephone is disconnected of any networks (neither WiFi not BT, xG, RJ45), Epiphany fail to find the "mobian" and "mobian.local" hostnames, with "Error resolving "mobian": Name or service unknown". Ok for the "mobian.local" : it's a zeroconf/bonjour hostname. But for "mobian" alone, Epiphany should find the host without troubles... And of course, i checked that "mobian" is present in /etc/hostname, and i even tried to add it in /etc/hosts on 127.0.0.1 - same result. When the phone is disconnected. Whith phone still disconnected, i use a terminal to ping "mobian" host, i get 127.0.0.2, which is ok for Firefox. So it seems that your browser simply ignores to check /etc/hosts and /etc/hostname, which is very annoying in my case, while developping webapps which should work with and without external networks.
Another trouble, with no links with this bug (i don't want to open an external bug report for that) is that Epiphany doesn't record the access to the websocket one for all (https://mobian:2020 in my case). I just mention it here so you can perhaps tell your team that this behaviour is especially annoying for people like me, trying to simplify the access for non-powered users. Thanks in advance. And thanks for your browser.