as: Download updates from official server for now
Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
@@ -76,3 +77,10 @@ func Common(ctx *gin.Context) {
|
||||
|
||||
ctx.Next()
|
||||
}
|
||||
|
||||
func CommonAs(ctx *gin.Context) {
|
||||
ep := strings.ReplaceAll(ctx.Request.URL.String(), "/ep3071", "")
|
||||
ctx.Set("ep", ep)
|
||||
|
||||
ctx.Next()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user