diff options
author | Simon Rozman <simon@rozman.si> | 2019-05-27 09:57:02 +0200 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2019-05-27 09:57:02 +0200 |
commit | 65317dcd758e916b751dcae5928e3a53f6d9f701 (patch) | |
tree | dd347f7322ec60a98668283053d49b456ec8aafe /tunnel/winipcfg/winipcfg_test.go | |
parent | build: set 6.1 PE flags (diff) | |
download | wireguard-windows-65317dcd758e916b751dcae5928e3a53f6d9f701.tar.xz wireguard-windows-65317dcd758e916b751dcae5928e3a53f6d9f701.zip |
winipcfg: make LUID.DeleteIPAddress accept IPNet
Thou DeleteUnicastIpAddressEntry() cares about the IP only.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to '')
-rw-r--r-- | tunnel/winipcfg/winipcfg_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |