Update RestProxy.php

bugfix for using multiple destinations