优化，调整了代理连接时的先后

Signed-off-by: ThinkPad <admin@love320.com>