current implementation of ipv6

This commit is contained in:
2021-06-25 01:03:20 +04:00
parent fbb3748fe4
commit 1eac752fa7
8 changed files with 91 additions and 41 deletions

View File

@@ -1,6 +1,9 @@
package client
import "testing"
import (
"fmt"
"testing"
)
func TestUpdateIpTableListClient(t *testing.T) {
err := UpdateIpTableListClient()
@@ -8,4 +11,15 @@ func TestUpdateIpTableListClient(t *testing.T) {
if err != nil {
t.Error(err)
}
}
// Testing is a IPV6 address is returned
func TestGetCurrentIPV6(t *testing.T) {
res, err := GetCurrentIPV6()
if err != nil {
t.Error(err)
}
fmt.Println(res)
}