current implementation of ipv6
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user