5 var _ error = ErrCode(0)
8 NoSuchPeer ErrCode = iota + 1
14 func (ec ErrCode) Error() string {
17 return "target endpoint is invalid"
19 return "the relaying peer is not connected to the target peer"
21 return "the target peer does not support the holepunch extension"
23 return "the target endpoint belongs to the relaying peer"