Skip to content

Commit b26ebc8

Browse files
committed
Fix proxy link: use dd prefix when masking is disabled (#58)
1 parent 33f3c79 commit b26ebc8

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

mtproxymax.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,9 +1067,13 @@ domain_to_hex() {
10671067
# Build the full FakeTLS secret for sharing (ee + raw_secret + domain_hex)
10681068
build_faketls_secret() {
10691069
local raw_secret="$1" domain="${2:-$PROXY_DOMAIN}"
1070-
local domain_hex
1071-
domain_hex=$(domain_to_hex "$domain")
1072-
echo "ee${raw_secret}${domain_hex}"
1070+
if [ "${MASKING_ENABLED:-true}" = "false" ]; then
1071+
echo "dd${raw_secret}"
1072+
else
1073+
local domain_hex
1074+
domain_hex=$(domain_to_hex "$domain")
1075+
echo "ee${raw_secret}${domain_hex}"
1076+
fi
10731077
}
10741078

10751079
# Generate telemt config.toml

0 commit comments

Comments
 (0)