Only show prefershttps if IP can use HTTPS

Change-Id: I7493a329d35fad3f17aac2df935f4f9306828884