[minor/bug] fix proxy support in agent