Updated Pac script to use direct connection for localhosts.