Added telemt
This commit is contained in:
1 parent
e1230f29b3
commit
b1b0042e80
1 file changed
+3
-2
@@ -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