net: fix typo in new_ip() (#13017)
parent
1ad4fbd841
commit
d5b111ec99
|
@ -24,7 +24,7 @@ fn new_ip6(port u16, addr [16]byte) Addr {
|
|||
}
|
||||
}
|
||||
|
||||
copy(a.addr.Ip6.addr[0..], addr[0..])
|
||||
copy(a.addr.Ip6.addr[..], addr[..])
|
||||
|
||||
return a
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ fn new_ip(port u16, addr [4]byte) Addr {
|
|||
}
|
||||
}
|
||||
|
||||
copy(a.addr.Ip6.addr[0..], addr[0..])
|
||||
copy(a.addr.Ip.addr[..], addr[..])
|
||||
|
||||
return a
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue