Browse Source

Update install.sh

molon 4 years ago
parent
commit
6b5d5c197f
1 changed files with 2 additions and 8 deletions
  1. 2 8
      scripts/install.sh

+ 2 - 8
scripts/install.sh

@@ -11,12 +11,6 @@ gen64() {
 	}
 	echo "$1:$(ip64):$(ip64):$(ip64):$(ip64)"
 }
-gen112() {
-	ip112() {
-		echo "${array[$RANDOM % 16]}${array[$RANDOM % 16]}${array[$RANDOM % 16]}${array[$RANDOM % 16]}"
-	}
-	echo "$1::$(ip112):$(ip112)"
-}
 install_3proxy() {
     echo "installing 3proxy"
     URL="https://github.com/z3APA3A/3proxy/archive/3proxy-0.8.6.tar.gz"
@@ -71,7 +65,7 @@ upload_proxy() {
 gen_data() {
 	# echo "usr$(random)/pass$(random)/$IP4/$port/$(gen64 $IP6)"
     seq $FIRST_PORT $LAST_PORT | while read port; do
-        echo "smile/girl/$IP4/$port/$(gen112 $IP6)"
+        echo "smile/girl/$IP4/$port/$(gen64 $IP6)"
     done
 }
 
@@ -85,7 +79,7 @@ EOF
 # or https://superuser.com/questions/203272/list-only-the-device-names-of-all-available-network-interfaces
 gen_ifconfig() {
     cat <<EOF
-$(awk -F "/" '{print "ifconfig eth0 inet6 add " $5 "/112"}' ${WORKDATA})
+$(awk -F "/" '{print "ifconfig eth0 inet6 add " $5 "/64"}' ${WORKDATA})
 EOF
 }
 echo "installing apps"