mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 05:34:02 +03:00
Update to go 1.19
This commit is contained in:
+7
-6
@@ -8,20 +8,21 @@ import (
|
||||
)
|
||||
|
||||
type URLs struct {
|
||||
TG string `json:"tg_url"` // nolint: tagliatelle
|
||||
TMe string `json:"tme_url"` // nolint: tagliatelle
|
||||
TGQRCode string `json:"tg_qrcode"` // nolint: tagliatelle
|
||||
TMeQRCode string `json:"tme_qrcode"` // nolint: tagliatelle
|
||||
TG string `json:"tg_url"` //nolint: tagliatelle
|
||||
TMe string `json:"tme_url"` //nolint: tagliatelle
|
||||
TGQRCode string `json:"tg_qrcode"` //nolint: tagliatelle
|
||||
TMeQRCode string `json:"tme_qrcode"` //nolint: tagliatelle
|
||||
}
|
||||
|
||||
type IPURLs struct {
|
||||
IPv4 *URLs `json:"ipv4,omitempty"`
|
||||
IPv6 *URLs `json:"ipv6,omitempty"`
|
||||
BotSecret string `json:"secret_for_mtproxybot"` // nolint: tagliatelle
|
||||
BotSecret string `json:"secret_for_mtproxybot"` //nolint: tagliatelle
|
||||
}
|
||||
|
||||
func GetURLs() (urls IPURLs) {
|
||||
func GetURLs() IPURLs {
|
||||
secret := ""
|
||||
urls := IPURLs{}
|
||||
|
||||
switch C.SecretMode {
|
||||
case SecretModeSimple:
|
||||
|
||||
Reference in New Issue
Block a user