client icon indicating copy to clipboard operation
client copied to clipboard

Is the isNeighborUri same as isUri in iota.js?

Open peter279k opened this issue 6 years ago • 3 comments

As title. Considering the isUri function in iota.js. The valid examples are as follows:

*   udp://[2001:db8:a0b:12f0::1]:14265
*   udp://[2001:db8:a0b:12f0::1]
*   udp://8.8.8.8:14265
*   udp://domain.com
*   udp://domain2.com:14265

The isNeighborUri method in IOTA\Util\ValidatorUtil class. All of the valid uris are the neighbor uri.

It seems that they're different. For example, the isUri only supports the tcp or udp.

I want to know isNeighborUri is implemented correctly?

peter279k avatar Aug 24 '18 17:08 peter279k