Update range_server.c

Sync'd with mdhim-tng