mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-12 22:10:01 -04:00
add proxy server code
This commit is contained in:
parent
dfd9a7a8ae
commit
953b6cb191
6 changed files with 75 additions and 10 deletions
16
server/run.sh
Executable file
16
server/run.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
#install dependencies and run the proxy server
|
||||
|
||||
set -e
|
||||
|
||||
if [ ! -d ".venv" ]; then
|
||||
python3 -m venv .venv
|
||||
fi
|
||||
source .venv/bin/activate
|
||||
|
||||
if ! python3 -c "import asyncio_socks_server, websockify" 2> /dev/null; then
|
||||
pip3 install -r requirements.txt
|
||||
fi
|
||||
|
||||
python3 main.py
|
Loading…
Add table
Add a link
Reference in a new issue