mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-04-26 09:26:07 +00:00
Compare commits
3 commits
7b1e7006ee
...
4dc4777b17
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4dc4777b17 | ||
|
|
ee920322be | ||
|
|
96b8fe472c |
1 changed files with 3 additions and 2 deletions
|
|
@ -8,6 +8,7 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"html"
|
||||||
"io"
|
"io"
|
||||||
"math/big"
|
"math/big"
|
||||||
"net"
|
"net"
|
||||||
|
|
@ -664,7 +665,7 @@ func (t *Tgbot) answerCommand(message *telego.Message, chatId int64, isAdmin boo
|
||||||
msg += t.I18nBot("tgbot.commands.help")
|
msg += t.I18nBot("tgbot.commands.help")
|
||||||
msg += t.I18nBot("tgbot.commands.pleaseChoose")
|
msg += t.I18nBot("tgbot.commands.pleaseChoose")
|
||||||
case "start":
|
case "start":
|
||||||
msg += t.I18nBot("tgbot.commands.start", "Firstname=="+message.From.FirstName)
|
msg += t.I18nBot("tgbot.commands.start", "Firstname=="+html.EscapeString(message.From.FirstName))
|
||||||
if isAdmin {
|
if isAdmin {
|
||||||
msg += t.I18nBot("tgbot.commands.welcome", "Hostname=="+hostname)
|
msg += t.I18nBot("tgbot.commands.welcome", "Hostname=="+hostname)
|
||||||
}
|
}
|
||||||
|
|
@ -3402,7 +3403,7 @@ func (t *Tgbot) addClient(chatId int64, msg string, messageID ...int) {
|
||||||
network, _ := streamSettings["network"].(string)
|
network, _ := streamSettings["network"].(string)
|
||||||
security, _ := streamSettings["security"].(string)
|
security, _ := streamSettings["security"].(string)
|
||||||
|
|
||||||
// Строго: только TCP и только с TLS или REALITY
|
// Strict: only TCP and only with TLS or REALITY
|
||||||
if network == "tcp" && (security == "tls" || security == "reality") {
|
if network == "tcp" && (security == "tls" || security == "reality") {
|
||||||
canUseFlow = true
|
canUseFlow = true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue