Fix connecting to servers with SRV records