mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
feat: add func GetIps and GetMacAddrs
This commit is contained in:
1 parent
c965e79bfc
commit
40c2402493
2 files changed
+50
No files matched your search
@@ -42,3 +42,13 @@ func TestIsPublicIP(t *testing.T) {
|
||||
assert.Equal(expected[i], actual)
|
||||
}
|
||||
}
|
||||
|
||||
func TestGetIps(t *testing.T) {
|
||||
ips := GetIps()
|
||||
t.Log(ips)
|
||||
}
|
||||
|
||||
func TestGetMacAddrs(t *testing.T) {
|
||||
macAddrs := GetMacAddrs()
|
||||
t.Log(macAddrs)
|
||||
}
|
||||
Reference in new issue
Block a user