From c262ee3bdf26b963d6320483cae856f186a1f59b Mon Sep 17 00:00:00 2001 From: Lan Tian Date: Fri, 10 Apr 2020 12:42:52 +0800 Subject: [PATCH] Specifically add AS to ASN queries --- frontend/telegram_bot.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/telegram_bot.go b/frontend/telegram_bot.go index a742c07..949ed13 100644 --- a/frontend/telegram_bot.go +++ b/frontend/telegram_bot.go @@ -119,7 +119,9 @@ func webHandlerTelegramBot(w http.ResponseWriter, r *http.Request) { if err == nil { if targetNumber < 10000 { targetNumber += 4242420000 - target = strconv.FormatUint(targetNumber, 10) + target = "AS" + strconv.FormatUint(targetNumber, 10) + } else { + target = "AS" + target } } }