Added telemt
This commit is contained in:
@@ -55,8 +55,9 @@ spec:
|
|||||||
echo "ERROR: node ${NODE_NAME} has no mtproxy label"
|
echo "ERROR: node ${NODE_NAME} has no mtproxy label"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# Build ee-prefixed secret for secure mode
|
# Build ee-prefixed secret: ee + secret + hex(tls_domain)
|
||||||
EE_SECRET="ee${SECRET}"
|
# "ya.ru" = 79612e7275
|
||||||
|
EE_SECRET="ee${SECRET}79612e7275"
|
||||||
LINK="tg://proxy?server=${SERVER}&port=${TELEMT_PORT}&secret=${EE_SECRET}"
|
LINK="tg://proxy?server=${SERVER}&port=${TELEMT_PORT}&secret=${EE_SECRET}"
|
||||||
echo "Registering telemt: ${SERVER} -> ${LINK}"
|
echo "Registering telemt: ${SERVER} -> ${LINK}"
|
||||||
if kubectl get secret telemt-links -n "${NAMESPACE}" &>/dev/null; then
|
if kubectl get secret telemt-links -n "${NAMESPACE}" &>/dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user