remove random create caddy email

pull/384/head
233boy 5 years ago
parent 3c3eb91d7d
commit 6288fcfbf1
  1. 7
      src/caddy-config.sh
  2. 2
      v2ray.sh

@ -1,10 +1,10 @@
local email=$(((RANDOM << 22)))
# local email=$(((RANDOM << 22)))
# tls ${email}@gmail.com
case $v2ray_transport in
4)
if [[ $is_path ]]; then
cat >/etc/caddy/Caddyfile <<-EOF
$domain {
tls ${email}@gmail.com
gzip
timeouts none
proxy / $proxy_site {
@ -20,7 +20,6 @@ import sites/*
else
cat >/etc/caddy/Caddyfile <<-EOF
$domain {
tls ${email}@gmail.com
timeouts none
proxy / 127.0.0.1:${v2ray_port} {
websocket
@ -34,7 +33,6 @@ import sites/*
if [[ $is_path ]]; then
cat >/etc/caddy/Caddyfile <<-EOF
$domain {
tls ${email}@gmail.com
gzip
timeouts none
proxy / $proxy_site {
@ -51,7 +49,6 @@ import sites/*
else
cat >/etc/caddy/Caddyfile <<-EOF
$domain {
tls ${email}@gmail.com
timeouts none
proxy / https://127.0.0.1:${v2ray_port} {
header_upstream Host {host}

@ -10,7 +10,7 @@ none='\e[0m'
# Root
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1
_version="v3.19"
_version="v3.20"
cmd="apt-get"

Loading…
Cancel
Save