Skip to content

Commit

Permalink
update hy2 share link
Browse files Browse the repository at this point in the history
  • Loading branch information
aleskxyz authored Sep 7, 2023
1 parent b122fca commit 5a50706
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions reality-ezpz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1253,12 +1253,11 @@ function print_client_configuration {
client_config="${client_config}#${username}"
elif [[ ${config[transport]} == 'hysteria2' ]]; then
client_config="hy2://"
client_config="${client_config}${username}"
client_config="${client_config}:$(echo -n "${username}${users[${username}]}" | sha256sum | cut -d ' ' -f 1 | head -c 16)"
client_config="${client_config}$(echo -n "${username}${users[${username}]}" | sha256sum | cut -d ' ' -f 1 | head -c 16)"
client_config="${client_config}@${config[server]}"
client_config="${client_config}:${config[port]}"
client_config="${client_config}/?obfs-password=${config[service_path]}"
client_config="${client_config}$([[ ${config[security]} == 'selfsigned' ]] && echo "&allow_insecure=1" || true)"
client_config="${client_config}/?obfs=salamander&obfs-password=${config[service_path]}"
client_config="${client_config}$([[ ${config[security]} == 'selfsigned' ]] && echo "&insecure=1" || true)"
client_config="${client_config}#${username}"
else
client_config="vless://"
Expand Down

0 comments on commit 5a50706

Please sign in to comment.