Fast path execution when connecting using IP

When you connect using IP (the "address" is actually IP) it's faster to try directly the IP without trying to hit DNS. So it firsts tries to parse IP and if success then it moves further directly. Else the original path is used.