8000 socket.has_ipv6 as false (temporary) · RustPython/RustPython@9d01ae2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9d01ae2

Browse files
committed
socket.has_ipv6 as false (temporary)
1 parent 88c295c commit 9d01ae2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vm/src/stdlib/socket.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@ pub fn make_module(vm: &VirtualMachine) -> PyObjectRef {
643643
"htons" => ctx.new_rustfunc(socket_hton::<u16>),
644644
"ntohl" => ctx.new_rustfunc(socket_ntoh::<u32>),
645645
"ntohs" => ctx.new_rustfunc(socket_ntoh::<u16>),
646+
"has_ipv6" => ctx.new_bool(false),
646647
"getdefaulttimeout" => ctx.new_rustfunc(|vm: &VirtualMachine| vm.get_none()),
647648
"getaddrinfo" => ctx.new_rustfunc(socket_getaddrinfo),
648649
"gethostbyaddr" => ctx.new_rustfunc(socket_gethostbyaddr),

0 commit comments

Comments
 (0)
0