update __resolve_address method

added IPv6 addresses resolve