wip update peer url

let's just set id := types.ID(cc.NodeID) at the start of this function, we use it everywhere.