mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-27 01:07:10 +00:00
chore: support ETag for update geo
This commit is contained in:
@@ -381,13 +381,13 @@ func updateTunnels(tunnels []LC.Tunnel) {
|
||||
}
|
||||
|
||||
func initExternalUI() {
|
||||
if updater.AutoUpdateUI {
|
||||
if updater.AutoDownloadUI {
|
||||
dirEntries, _ := os.ReadDir(updater.ExternalUIPath)
|
||||
if len(dirEntries) > 0 {
|
||||
log.Infoln("UI already exists, skip downloading")
|
||||
} else {
|
||||
log.Infoln("External UI downloading ...")
|
||||
updater.UpdateUI()
|
||||
updater.DownloadUI()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user