update: better way to auto connect.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>