I've check db configuration show for masq and squid and both servers look correct.
do you use squid in a server only setup?
just tested on a fresh 8b4 virtual machine.. no problem to connect to external sites on non standard port (4580 in my case), so it could be an issue on your side.
Anyway, as cactus said, please report any issue in bugzilla, thank you