Skip to content

Is the isNeighborUri same as isUri in iota.js? #58

@peter279k

Description

@peter279k

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions