Write an IPv6-disabled wrapper for pip

This commit is contained in:
Ohad Livne 2025-06-04 22:45:29 +03:00
parent 5d59fec160
commit 2c839f028e
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D

5
.local/bin/pipv4 Executable file
View file

@ -0,0 +1,5 @@
#! /usr/bin/sh
sudo sysctl net.ipv6.conf.all.disable_ipv6=1
pip "$@"
sudo sysctl net.ipv6.conf.all.disable_ipv6=0