mirror of https://github.com/vacp2p/nim-libp2p.git
Add cross-platform getInterfaces() and test.
This commit is contained in:
parent
9ddc47fa56
commit
518d33e26c
|
@ -0,0 +1,9 @@
|
|||
import unittest
|
||||
import ../libp2p/ipnet/iface
|
||||
|
||||
suite "OS interfaces list suite":
|
||||
test "Get interfaces list test":
|
||||
var ifaces = getInterfaces()
|
||||
for item in ifaces:
|
||||
echo item
|
||||
check len(ifaces) > 0
|
Loading…
Reference in New Issue