The proton optical-model potential in the interior of the nucleus