add default port/protocol for proxy if absent