From 65317dcd758e916b751dcae5928e3a53f6d9f701 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 27 May 2019 09:57:02 +0200 Subject: winipcfg: make LUID.DeleteIPAddress accept IPNet Thou DeleteUnicastIpAddressEntry() cares about the IP only. Signed-off-by: Simon Rozman --- tunnel/winipcfg/winipcfg_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tunnel/winipcfg/winipcfg_test.go') diff --git a/tunnel/winipcfg/winipcfg_test.go b/tunnel/winipcfg/winipcfg_test.go index c69c1847..829d2675 100644 --- a/tunnel/winipcfg/winipcfg_test.go +++ b/tunnel/winipcfg/winipcfg_test.go @@ -439,7 +439,7 @@ func TestAddDeleteIPAddress(t *testing.T) { t.Errorf("Notification handler has not been called on add.") } - err = ifc.LUID.DeleteIPAddress(unexistentIPAddresToAdd.IP) + err = ifc.LUID.DeleteIPAddress(unexistentIPAddresToAdd) if err != nil { t.Errorf("LUID.DeleteIPAddress() returned an error: %v", err) } -- cgit v1.2.3-59-g8ed1b