Fill yourip in extended handshake
This commit is contained in:
parent
c697809e50
commit
3c0baacaa7
2 changed files with 7 additions and 2 deletions
|
|
@ -96,7 +96,10 @@ impl Serialize for YourIP {
|
|||
let buf = ipv4.octets();
|
||||
serializer.serialize_bytes(&buf)
|
||||
}
|
||||
IpAddr::V6(_) => todo!(),
|
||||
IpAddr::V6(ipv6) => {
|
||||
let buf = ipv6.octets();
|
||||
serializer.serialize_bytes(&buf)
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue