chore: clean up code

This commit is contained in:
gVisor bot 2023-03-25 22:56:24 +08:00
parent 2fc32a28e2
commit dba4917ed3
3 changed files with 6 additions and 5 deletions

View file

@ -2,14 +2,15 @@ package http
import ( import (
"context" "context"
"github.com/Dreamacro/clash/component/tls"
"github.com/Dreamacro/clash/listener/inner"
"io" "io"
"net" "net"
"net/http" "net/http"
URL "net/url" URL "net/url"
"strings" "strings"
"time" "time"
"github.com/Dreamacro/clash/component/tls"
"github.com/Dreamacro/clash/listener/inner"
) )
const ( const (

View file

@ -10,9 +10,9 @@ import (
"github.com/Dreamacro/clash/hub/updater" "github.com/Dreamacro/clash/hub/updater"
"github.com/Dreamacro/clash/log" "github.com/Dreamacro/clash/log"
"github.com/go-chi/render"
"github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5"
"github.com/go-chi/render"
) )
func upgradeRouter() http.Handler { func upgradeRouter() http.Handler {

View file

@ -42,8 +42,8 @@ var (
updateExeName string // 更新后的可执行文件 updateExeName string // 更新后的可执行文件
unpackedFile string unpackedFile string
baseURL = "https://github.com/MetaCubeX/Clash.Meta/releases/download/Prerelease-Alpha/clash.meta" baseURL string = "https://ghproxy.com/https://github.com/MetaCubeX/Clash.Meta/releases/download/Prerelease-Alpha/clash.meta"
versionURL = "https://github.com/MetaCubeX/Clash.Meta/releases/download/Prerelease-Alpha/version.txt" versionURL string = "https://github.com/MetaCubeX/Clash.Meta/releases/download/Prerelease-Alpha/version.txt"
packageURL string packageURL string
latestVersion string latestVersion string
) )