use new peer API

Signed-off-by: Manson Li <lijinsong@intfhink.com>