-
Notifications
You must be signed in to change notification settings - Fork 87
36 lines (29 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
udp2raw_install()
{
wget https://262235.xyz/u/udp2raw_binaries.tar.gz
tar xf udp2raw_binaries.tar.gz
mv udp2raw_amd64 /usr/bin/udp2raw
wget https://262235.xyz/u/kcptun-linux-amd64-20230811.tar.gz
tar xf kcptun-linux-amd64-20230811.tar.gz
mv server_linux_amd64 /usr/bin/kcp-server
mv client_linux_amd64 /usr/bin/kcp-client
wget https://262235.xyz/u//speederv2_binaries.tar.gz
tar xf speederv2_binaries.tar.gz
mv speederv2_amd64 /usr/bin/speederv2
}
def_install(){
# Download the binary release of Pure Compilation.
wget -O /tmp/ss.tgz https://262235.xyz/u/ss.tgz
tar xvf /tmp/ss.tgz -C /
echo "/usr/local/lib" > /etc/ld.so.conf.d/ss-libev.conf
ldconfig
export PATH=$PATH:/usr/local/bin
}
cd /tmp/
if [ ! -e '/usr/bin/speederv2' ]; then
apt update -y && apt install iptables -y
update-alternatives --set iptables /usr/sbin/iptables-legacy
def_install
udp2raw_install
fi
wget -O /root/sskcp.py https://262235.xyz/u/sskcp.py