233boy 6 years ago
commit 2a09180970
  1. 2
      .github/ISSUE_TEMPLATE.md
  2. 2
      config/server/include/socks.json
  3. 2
      src/client_file.sh
  4. 1
      src/download-v2ray.sh
  5. 4
      src/qr.sh
  6. 2
      src/socks-config.sh
  7. 2
      src/uninstall.sh
  8. 2
      templates/socks.json
  9. 2
      v2ray.sh

@ -1,3 +1,3 @@
提问之前,请先查阅:[V2Ray 一键安装脚本疑问集合](https://v2ray6.com/post/10/) 提问之前,请先查阅:[V2Ray 一键安装脚本疑问集合](https://233v2.com/post/10/)
若需要发起提问,请删除这些内容 若需要发起提问,请删除这些内容

@ -6,7 +6,7 @@
"auth": "password", "auth": "password",
"accounts": [ "accounts": [
{ {
"user": "v2ray66.com", "user": "233v2.com",
"pass": "233blog.com" "pass": "233blog.com"
} }
], ],

@ -8,7 +8,7 @@ _get_client_file() {
echo echo
echo -e ${cyan}$link${none} echo -e ${cyan}$link${none}
echo echo
echo " V2Ray 客户端使用教程: https://v2ray6.com/post/4/" echo " V2Ray 客户端使用教程: https://233v2.com/post/4/"
echo echo
echo echo
} }

@ -29,6 +29,7 @@ _download_v2ray_file() {
unzip -o $v2ray_tmp_file -d "/usr/bin/v2ray/" unzip -o $v2ray_tmp_file -d "/usr/bin/v2ray/"
chmod +x /usr/bin/v2ray/v2ray /usr/bin/v2ray/v2ctl chmod +x /usr/bin/v2ray/v2ray /usr/bin/v2ray/v2ctl
setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/v2ray/v2ray setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/v2ray/v2ray
echo "alias v2ray=$_v2ray_sh" >>/root/.bashrc
} }
_install_v2ray_service() { _install_v2ray_service() {

@ -16,13 +16,13 @@ _qr_create() {
_red "友情提醒: 请务必核对扫码结果 (V2RayNG 除外)" _red "友情提醒: 请务必核对扫码结果 (V2RayNG 除外)"
echo echo
echo echo
echo " V2Ray 客户端使用教程: https://v2ray6.com/post/4/" echo " V2Ray 客户端使用教程: https://233v2.com/post/4/"
echo echo
echo echo
rm -rf /etc/v2ray/vmess_qr.json rm -rf /etc/v2ray/vmess_qr.json
} }
_ss_qr() { _ss_qr() {
local ss_link="ss://$(echo -n "${ssciphers}:${sspass}@${ip}:${ssport}" | base64 -w 0)#v2ray6.com_ss_${ip}" local ss_link="ss://$(echo -n "${ssciphers}:${sspass}@${ip}:${ssport}" | base64 -w 0)#233v2.com_ss_${ip}"
local link="https://233boy.github.io/tools/qr.html#${ss_link}" local link="https://233boy.github.io/tools/qr.html#${ss_link}"
echo echo
echo "---------- Shadowsocks 二维码链接 -------------" echo "---------- Shadowsocks 二维码链接 -------------"

@ -3,7 +3,7 @@ if [[ $socks ]]; then
socks_file="/etc/v2ray/233boy/v2ray/config/server/include/socks.json" socks_file="/etc/v2ray/233boy/v2ray/config/server/include/socks.json"
socks_file_tmp="/tmp/socks.json.tmp" socks_file_tmp="/tmp/socks.json.tmp"
cp -f $socks_file $socks_file_tmp cp -f $socks_file $socks_file_tmp
sed -i "s/6666/$socks_port/; s/v2ray66.com/$socks_username/; s/233blog.com/$socks_userpass/" $socks_file_tmp sed -i "s/6666/$socks_port/; s/233v2.com/$socks_username/; s/233blog.com/$socks_userpass/" $socks_file_tmp
sed -i "/\/\/include_socks/r $socks_file_tmp" $v2ray_server_config sed -i "/\/\/include_socks/r $socks_file_tmp" $v2ray_server_config
sed -i "s#//include_socks#,#" $v2ray_server_config sed -i "s#//include_socks#,#" $v2ray_server_config
rm -rf $socks_file_tmp rm -rf $socks_file_tmp

@ -84,6 +84,7 @@ if [[ $is_uninstall_v2ray && $is_uninstall_caddy ]]; then
[ $v2ray_pid ] && systemctl stop v2ray [ $v2ray_pid ] && systemctl stop v2ray
rm -rf /usr/bin/v2ray rm -rf /usr/bin/v2ray
rm -rf $_v2ray_sh rm -rf $_v2ray_sh
sed -i '/alias v2ray=/d' /root/.bashrc
rm -rf /etc/v2ray rm -rf /etc/v2ray
rm -rf /var/log/v2ray rm -rf /var/log/v2ray
@ -137,6 +138,7 @@ elif [[ $is_uninstall_v2ray ]]; then
[ $v2ray_pid ] && systemctl stop v2ray [ $v2ray_pid ] && systemctl stop v2ray
rm -rf /usr/bin/v2ray rm -rf /usr/bin/v2ray
rm -rf $_v2ray_sh rm -rf $_v2ray_sh
sed -i '/alias v2ray=/d' /root/.bashrc
rm -rf /etc/v2ray rm -rf /etc/v2ray
rm -rf /var/log/v2ray rm -rf /var/log/v2ray
if [[ $systemd ]]; then if [[ $systemd ]]; then

@ -5,7 +5,7 @@
"auth": "password", "auth": "password",
"accounts": [ "accounts": [
{ {
"user": "v2ray66.com", // username "user": "233v2.com", // username
"pass": "233blog.com" // passowrd "pass": "233blog.com" // passowrd
} }
], ],

@ -2530,7 +2530,7 @@ get_v2ray_config_info_link() {
echo echo
create_v2ray_config_text >/tmp/233blog_v2ray.txt create_v2ray_config_text >/tmp/233blog_v2ray.txt
local random=$(echo $RANDOM-$RANDOM-$RANDOM | base64 -w 0) local random=$(echo $RANDOM-$RANDOM-$RANDOM | base64 -w 0)
local link=$(curl -s --upload-file /tmp/233blog_v2ray.txt "https://transfer.sh/${random}_v2ray6_v2ray.txt") local link=$(curl -s --upload-file /tmp/233blog_v2ray.txt "https://transfer.sh/${random}_233v2_v2ray.txt")
if [[ $link ]]; then if [[ $link ]]; then
echo echo
echo "---------- V2Ray 配置信息链接-------------" echo "---------- V2Ray 配置信息链接-------------"

Loading…
Cancel
Save