From 6e31282c79ae35c1ae41ad17d38a6fb8789716fa Mon Sep 17 00:00:00 2001 From: Teddysun Date: Wed, 2 Aug 2017 20:44:19 +0900 Subject: [PATCH] update stream ciphers Signed-off-by: Teddysun --- shadowsocks-all.sh | 3 +++ shadowsocks-go.sh | 3 ++- shadowsocks-libev-debian.sh | 2 ++ shadowsocks-libev.sh | 22 +++++++++++++++++++++- 4 files changed, 28 insertions(+), 2 deletions(-) diff --git a/shadowsocks-all.sh b/shadowsocks-all.sh index 4808a5c..e36209d 100644 --- a/shadowsocks-all.sh +++ b/shadowsocks-all.sh @@ -79,9 +79,11 @@ aes-128-cfb camellia-128-cfb camellia-192-cfb camellia-256-cfb +xchacha20-ietf-poly1305 chacha20-ietf-poly1305 chacha20-ietf chacha20 +salsa20 rc4-md5 ) go_ciphers=( @@ -93,6 +95,7 @@ aes-192-ctr aes-128-ctr chacha20-ietf chacha20 +salsa20 rc4-md5 ) r_ciphers=( diff --git a/shadowsocks-go.sh b/shadowsocks-go.sh index e2072f4..4e02c2b 100644 --- a/shadowsocks-go.sh +++ b/shadowsocks-go.sh @@ -19,7 +19,7 @@ echo "# Github: https://github.com/shadowsocks/shadowsocks-go #" echo "#############################################################" echo -#Current folder +# Current folder cur_dir=`pwd` # Stream Ciphers ciphers=( @@ -31,6 +31,7 @@ aes-192-ctr aes-128-ctr chacha20-ietf chacha20 +salsa20 rc4-md5 ) # Color diff --git a/shadowsocks-libev-debian.sh b/shadowsocks-libev-debian.sh index 2b19d20..d42704c 100644 --- a/shadowsocks-libev-debian.sh +++ b/shadowsocks-libev-debian.sh @@ -32,9 +32,11 @@ aes-128-cfb camellia-128-cfb camellia-192-cfb camellia-256-cfb +xchacha20-ietf-poly1305 chacha20-ietf-poly1305 chacha20-ietf chacha20 +salsa20 rc4-md5 ) # Color diff --git a/shadowsocks-libev.sh b/shadowsocks-libev.sh index 3c04d92..1ea39c7 100644 --- a/shadowsocks-libev.sh +++ b/shadowsocks-libev.sh @@ -32,9 +32,11 @@ aes-128-cfb camellia-128-cfb camellia-192-cfb camellia-256-cfb +xchacha20-ietf-poly1305 chacha20-ietf-poly1305 chacha20-ietf chacha20 +salsa20 rc4-md5 ) # Color @@ -194,6 +196,24 @@ centosversion(){ fi } +version_ge(){ + test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" == "$1" +} + +# autoconf version +autoconfversion(){ + if [ "$(command -v "autoconf")" ]; then + local version=$(autoconf --version | grep autoconf | awk '{print $4}') + if version_ge ${version} 2.67; then + return 0 + else + return 1 + fi + else + return 1 + fi +} + # Pre-installation settings pre_install(){ # Check OS system @@ -295,7 +315,7 @@ pre_install(){ char=`get_char` #Install necessary dependencies yum install -y epel-release && yum makecache - yum install -y unzip openssl openssl-devel gettext gcc autoconf libtool automake make asciidoc xmlto udns-devel libev-devel pcre pcre-devel + yum install -y unzip openssl openssl-devel gettext gcc autoconf libtool automake make asciidoc xmlto udns-devel libev-devel pcre pcre-devel git } download() {