diff --git a/README.md b/README.md index 9aa009b..18c3c48 100644 --- a/README.md +++ b/README.md @@ -245,6 +245,9 @@ Since v1.5.5, we've already optimized the SHA256 function to the top. So the onl # Change Log +## v1.11.2 +* Add "install.py" to install package "pysocks" for using socks for proxy. + ## v1.11.1 * Merged PR #299 to work with latest sd v1.10.1 diff --git a/install.py b/install.py new file mode 100644 index 0000000..ea2a2b1 --- /dev/null +++ b/install.py @@ -0,0 +1,4 @@ +import launch + +if not launch.is_installed("pysocks"): + launch.run_pip("install pysocks", "pysocks") diff --git a/scripts/ch_lib/util.py b/scripts/ch_lib/util.py index 181ee43..7b2da54 100644 --- a/scripts/ch_lib/util.py +++ b/scripts/ch_lib/util.py @@ -6,7 +6,7 @@ import requests import shutil -version = "1.11.1" +version = "1.11.2" def_headers = {'User-Agent': 'Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148', "Authorization": ""}