TL;DR: In this paper, the propagation of light rays in an inhomogeneous universe by solving numerically the geodesic equation for each ray was investigated, and the distance-redshift relation depends on the angular scale and deviates from the standard formula to the Dyer-Roeder one for a small angular separation between rays.