[bug] Proxy exceptions don't work with hosts file

Board for discussions around the Basilisk web browser.

Moderator: satrow

alancast
Moongazer
Moongazer
Posts: 8
Joined: Thu, 10 May 2018, 08:58

[bug] Proxy exceptions don't work with hosts file

Unread postby alancast » Thu, 01 Nov 2018, 05:21

I set
Advanced - Network - Connection - Settings - Manual proxy configuration
with SOCKS 5 tunnel, and

No proxy for:
127.0.0.1, localhost, smarthome

and I have a string in my hosts file:
127.0.0.1 smarthome

So when I type in URL bar
http://smarthome/cafe/boil

Basilisk should look for "smarthome" in my hosts file and connect to my local server.
Instead it goes to
http://www.smarthome.com/cafe/boil

though without proxy in Basilisk configuration it doesn't do that.

Thus, proxy exceptions don't work with the hosts file.
It's a bug.

User avatar
gepus
Fanatic
Fanatic
Posts: 152
Joined: Thu, 14 Dec 2017, 12:59

Re: [bug] Proxy exceptions don't work with hosts file

Unread postby gepus » Fri, 02 Nov 2018, 07:40

Whatever you want to accomplish, your approach is wrong.
Thus I assume that you'll get the same results with any other browser you'd test with.

- If you type in the URL bar http://smarthome/cafe/boil the browser (with proxy enabled) will try to connect to that address.
- If the proxy is disabled the browser can't connect to http://smarthome/cafe/boil since your hosts file is blocking this address by redirecting it to 127.0.0.1, your local machine where no proxy is listening anymore.

If you have a local network and you want to redirect to it from your hosts file than you'll have to try something like this:

Code: Select all

#   127.0.0.1    localhost
#         ::1    localhost
192.168.1.x      mylocalnetwork.com


However this topic is not related to Basilisk but rather to how to configure my hosts file.

yami_
Fanatic
Fanatic
Posts: 204
Joined: Thu, 26 Apr 2018, 11:05

Re: [bug] Proxy exceptions don't work with hosts file

Unread postby yami_ » Fri, 02 Nov 2018, 10:14

You probably just need to disable the browser.fixup.alternate.enabled pref.
cat came back from Berkeley waving flags
- rob pike

alancast
Moongazer
Moongazer
Posts: 8
Joined: Thu, 10 May 2018, 08:58

Re: [bug] Proxy exceptions don't work with hosts file

Unread postby alancast » Thu, 08 Nov 2018, 19:18

yami_ thanks. It seems it was not always working, but I think it was some browser redirect malware, hard to find & clean up.

gepus, no, I was trying to say that the domain I tried to reach ("smarthome") was served from IP 127.0.0.1, and it was explicitly said in the hosts file.

As it is a valid domain found in hosts file, the browser should not go to any outer DNS servers or make substitutions.

Otherwise it's a bug.


Return to “Basilisk”

Who is online

Users browsing this forum: No registered users and 2 guests