Skip to content

Commit

Permalink
Unit test fixes RIVM-123
Browse files Browse the repository at this point in the history
  • Loading branch information
vikulin committed Dec 19, 2023
1 parent 280c3dd commit b03dc9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tun/tun_bsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (tun *TunAdapter) setupAddress(addr string) error {
copy(ar.ifr_name[:], tun.Name())
ar.ifru_addr.sin6_len = uint8(unsafe.Sizeof(ar.ifru_addr))
ar.ifru_addr.sin6_family = unix.AF_INET6
a, _, err := net.ParseCIDR(address)
a, _, err := net.ParseCIDR(addr)
if err != nil {
tun.log.Printf("Incorrect CIDR: %v.", err)
return err
Expand Down
2 changes: 1 addition & 1 deletion src/tun/tun_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (tun *TunAdapter) setupAddress(addr string) error {

ar.ifra_addr.sin6_len = uint8(unsafe.Sizeof(ar.ifra_addr))
ar.ifra_addr.sin6_family = unix.AF_INET6
a, _, err := net.ParseCIDR(address)
a, _, err := net.ParseCIDR(addr)
if err != nil {
tun.log.Printf("Incorrect CIDR: %v.", err)
return err
Expand Down

0 comments on commit b03dc9b

Please sign in to comment.