mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
socket.has_ipv6 as false (temporary)
This commit is contained in:
1 parent
88c295c7f4
commit
9d01ae2957
1 file changed
+1
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user