socket.has_ipv6 as false (temporary)

This commit is contained in:
Jeong YunWon committed 2020-01-08 11:54:30 +09:00
1 parent 88c295c7f4
commit 9d01ae2957
1 file changed
+1
+1
View File
@@ -643,6 +643,7 @@ pub fn make_module(vm: &VirtualMachine) -> PyObjectRef {
"htons" => ctx.new_rustfunc(socket_hton::<u16>),
"ntohl" => ctx.new_rustfunc(socket_ntoh::<u32>),
"ntohs" => ctx.new_rustfunc(socket_ntoh::<u16>),
"has_ipv6" => ctx.new_bool(false),
"getdefaulttimeout" => ctx.new_rustfunc(|vm: &VirtualMachine| vm.get_none()),
"getaddrinfo" => ctx.new_rustfunc(socket_getaddrinfo),
"gethostbyaddr" => ctx.new_rustfunc(socket_gethostbyaddr),