peer: add endpoint type