proxy: added possibility to specify multiple remote addresses. The first one is used yet.