replace # with _

pull/149/head
BOYPT 6 years ago committed by cutelua
parent 538672319c
commit df1b7cc33a
  1. 12
      config/client/h2.json
  2. 8
      config/client/http.json
  3. 8
      config/client/kcp.json
  4. 8
      config/client/quic.json
  5. 8
      config/client/tcp.json
  6. 8
      config/client/ws.json
  7. 8
      config/client/ws_tls.json
  8. 6
      config/server/dynamic/http.json
  9. 6
      config/server/dynamic/kcp.json
  10. 6
      config/server/dynamic/quic.json
  11. 6
      config/server/dynamic/tcp.json
  12. 6
      config/server/dynamic/ws.json
  13. 6
      config/server/h2.json
  14. 6
      config/server/http.json
  15. 6
      config/server/kcp.json
  16. 6
      config/server/quic.json
  17. 6
      config/server/tcp.json
  18. 6
      config/server/ws.json
  19. 2
      src/download-ssray.sh
  20. 6
      src/ssray.conf
  21. 18
      src/vmess-config.sh

@ -9,12 +9,12 @@
"settings": {
"vnext": [
{
"address": "##VMADDR##",
"port": ##VMPORT##,
"address": "__VMADDR__",
"port": __VMPORT__,
"users": [
{
"id": "##VMUSERID##",
"alterId": ##VMALTID##,
"id": "__VMUSERID__",
"alterId": __VMALTID__,
"security": "auto"
}
]
@ -26,9 +26,9 @@
"security": "tls",
"httpSettings": {
"host": [
"##H2DOMAIN##"
"__H2DOMAIN__"
],
"path": "##H2PATH##"
"path": "__H2PATH__"
}
},
"mux": {

@ -9,12 +9,12 @@
"settings": {
"vnext": [
{
"address": "##VMADDR##",
"port": ##VMPORT##,
"address": "__VMADDR__",
"port": __VMPORT__,
"users": [
{
"id": "##VMUSERID##",
"alterId": ##VMALTID##,
"id": "__VMUSERID__",
"alterId": __VMALTID__,
"security": "auto"
}
]

@ -9,12 +9,12 @@
"settings": {
"vnext": [
{
"address": "##VMADDR##",
"port": ##VMPORT##,
"address": "__VMADDR__",
"port": __VMPORT__,
"users": [
{
"id": "##VMUSERID##",
"alterId": ##VMALTID##,
"id": "__VMUSERID__",
"alterId": __VMALTID__,
"security": "auto"
}
]

@ -9,12 +9,12 @@
"settings": {
"vnext": [
{
"address": "##VMADDR##",
"port": ##VMPORT##,
"address": "__VMADDR__",
"port": __VMPORT__,
"users": [
{
"id": "##VMUSERID##",
"alterId": ##VMALTID##,
"id": "__VMUSERID__",
"alterId": __VMALTID__,
"security": "auto"
}
]

@ -9,12 +9,12 @@
"settings": {
"vnext": [
{
"address": "##VMADDR##",
"port": ##VMPORT##,
"address": "__VMADDR__",
"port": __VMPORT__,
"users": [
{
"id": "##VMUSERID##",
"alterId": ##VMALTID##,
"id": "__VMUSERID__",
"alterId": __VMALTID__,
"security": "auto"
}
]

@ -9,12 +9,12 @@
"settings": {
"vnext": [
{
"address": "##VMADDR##",
"port": ##VMPORT##,
"address": "__VMADDR__",
"port": __VMPORT__,
"users": [
{
"id": "##VMUSERID##",
"alterId": ##VMALTID##,
"id": "__VMUSERID__",
"alterId": __VMALTID__,
"security": "auto"
}
]

@ -9,12 +9,12 @@
"settings": {
"vnext": [
{
"address": "##VMADDR##",
"port": ##VMPORT##,
"address": "__VMADDR__",
"port": __VMPORT__,
"users": [
{
"id": "##VMUSERID##",
"alterId": ##VMALTID##,
"id": "__VMUSERID__",
"alterId": __VMALTID__,
"security": "auto"
}
]

@ -41,14 +41,14 @@
},
{
"tag": "vmess-in",
"port": ##VMPORT##,
"port": __VMPORT__,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "##VMUSERID##",
"id": "__VMUSERID__",
"level": 1,
"alterId": ##VMALTID##
"alterId": __VMALTID__
}
],
"detour": {

@ -41,14 +41,14 @@
},
{
"tag": "vmess-in",
"port": ##VMPORT##,
"port": __VMPORT__,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "##VMUSERID##",
"id": "__VMUSERID__",
"level": 1,
"alterId": ##VMALTID##
"alterId": __VMALTID__
}
],
"detour": {

@ -41,14 +41,14 @@
},
{
"tag": "vmess-in",
"port": ##VMPORT##,
"port": __VMPORT__,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "##VMUSERID##",
"id": "__VMUSERID__",
"level": 1,
"alterId": ##VMALTID##
"alterId": __VMALTID__
}
],
"detour": {

@ -41,14 +41,14 @@
},
{
"tag": "vmess-in",
"port": ##VMPORT##,
"port": __VMPORT__,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "##VMUSERID##",
"id": "__VMUSERID__",
"level": 1,
"alterId": ##VMALTID##
"alterId": __VMALTID__
}
],
"detour": {

@ -41,14 +41,14 @@
},
{
"tag": "vmess-in",
"port": ##VMPORT##,
"port": __VMPORT__,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "##VMUSERID##",
"id": "__VMUSERID__",
"level": 1,
"alterId": ##VMALTID##
"alterId": __VMALTID__
}
],
"detour": {

@ -41,14 +41,14 @@
},
{
"tag": "vmess-in",
"port": ##VMPORT##,
"port": __VMPORT__,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "##VMUSERID##",
"id": "__VMUSERID__",
"level": 1,
"alterId": ##VMALTID##
"alterId": __VMALTID__
}
]
},

@ -41,14 +41,14 @@
},
{
"tag": "vmess-in",
"port": ##VMPORT##,
"port": __VMPORT__,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "##VMUSERID##",
"id": "__VMUSERID__",
"level": 1,
"alterId": ##VMALTID##
"alterId": __VMALTID__
}
]
},

@ -41,14 +41,14 @@
},
{
"tag": "vmess-in",
"port": ##VMPORT##,
"port": __VMPORT__,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "##VMUSERID##",
"id": "__VMUSERID__",
"level": 1,
"alterId": ##VMALTID##
"alterId": __VMALTID__
}
]
},

@ -41,14 +41,14 @@
},
{
"tag": "vmess-in",
"port": ##VMPORT##,
"port": __VMPORT__,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "##VMUSERID##",
"id": "__VMUSERID__",
"level": 1,
"alterId": ##VMALTID##
"alterId": __VMALTID__
}
]
},

@ -41,14 +41,14 @@
},
{
"tag": "vmess-in",
"port": ##VMPORT##,
"port": __VMPORT__,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "##VMUSERID##",
"id": "__VMUSERID__",
"level": 1,
"alterId": ##VMALTID##
"alterId": __VMALTID__
}
]
},

@ -41,14 +41,14 @@
},
{
"tag": "vmess-in",
"port": ##VMPORT##,
"port": __VMPORT__,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "##VMUSERID##",
"id": "__VMUSERID__",
"level": 1,
"alterId": ##VMALTID##
"alterId": __VMALTID__
}
]
},

@ -37,7 +37,7 @@ _install_ssray_service() {
if [[ $systemd ]]; then
install -m644 /etc/v2ray/233boy/v2ray/src/ssray.service "/lib/systemd/system/"
install -m644 /etc/v2ray/233boy/v2ray/src/ssray.conf /etc/v2ray/
sed -i "s/##REMOTEPORT##/${ssrayport}/; s/##LOCALPORT##/${ssport}/; s/##OPTION##/${ssrayopt}/;" /etc/v2ray/ssray.conf
sed -i "s/__REMOTEPORT__/${ssrayport}/; s/__LOCALPORT__/${ssport}/; s/__OPTION__/${ssrayopt}/;" /etc/v2ray/ssray.conf
systemctl enable ssray
else
$red 暂时不资瓷...$none

@ -1,5 +1,5 @@
SS_REMOTE_HOST=0.0.0.0
SS_REMOTE_PORT=##REMOTEPORT##
SS_REMOTE_PORT=__REMOTEPORT__
SS_LOCAL_HOST=127.0.0.1
SS_LOCAL_PORT=##LOCALPORT##
SS_PLUGIN_OPTIONS="##OPTION##"
SS_LOCAL_PORT=__LOCALPORT__
SS_PLUGIN_OPTIONS="__OPTION__"

@ -55,7 +55,7 @@ cp -f $v2ray_server_config_file $v2ray_server_config
cp -f $v2ray_client_config_file $v2ray_client_config
# change port, uuid, alterId
sed -i "s/##VMPORT##/$v2ray_port/; s/##VMUSERID##/$v2ray_id/; s/##VMALTID##/$alterId/" $v2ray_server_config
sed -i "s/__VMPORT__/$v2ray_port/; s/__VMUSERID__/$v2ray_id/; s/__VMALTID__/$alterId/" $v2ray_server_config
# change dynamic port
if [[ $v2ray_transport -ge 18 ]]; then
@ -66,11 +66,11 @@ fi
# change domain and path, or header type
case $v2ray_transport in
5)
sed -i "s/##H2DOMAIN##/$domain/" $v2ray_server_config
sed -i "s/__H2DOMAIN__/$domain/" $v2ray_server_config
if [[ $is_path ]]; then
sed -i "s/##H2PATH##/$path/" $v2ray_server_config
sed -i "s/__H2PATH__/$path/" $v2ray_server_config
else
sed -i "s/##H2PATH##//" $v2ray_server_config
sed -i "s/__H2PATH__//" $v2ray_server_config
fi
;;
7 | 13 | 22 | 28)
@ -95,15 +95,15 @@ case $v2ray_transport in
;;
esac
## change client config file
__ change client config file
[[ -z $ip ]] && get_ip
sed -i "s/##VMADDR##/$ip/; s/##VMPORT##/$v2ray_port/; s/##VMUSERID##/$v2ray_id/; s/##VMALTID##/$alterId/" $v2ray_client_config
sed -i "s/__VMADDR__/$ip/; s/__VMPORT__/$v2ray_port/; s/__VMUSERID__/$v2ray_id/; s/__VMALTID__/$alterId/" $v2ray_client_config
if [[ $v2ray_transport == [45] ]]; then
sed -i "s/##H2DOMAIN##/$domain/" $v2ray_client_config
sed -i "s/__H2DOMAIN__/$domain/" $v2ray_client_config
if [[ $is_path ]]; then
sed -i "s/##H2PATH##/$path/" $v2ray_client_config
sed -i "s/__H2PATH__/$path/" $v2ray_client_config
else
sed -i "s/##H2PATH##//" $v2ray_client_config
sed -i "s/__H2PATH__//" $v2ray_client_config
fi
fi

Loading…
Cancel
Save