mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 21:24:10 +00:00
fix
This commit is contained in:
parent
45ef05a523
commit
3b05799279
3 changed files with 3 additions and 2 deletions
2
go.mod
2
go.mod
|
|
@ -26,6 +26,7 @@ require (
|
|||
golang.org/x/sys v0.42.0
|
||||
golang.org/x/text v0.35.0
|
||||
google.golang.org/grpc v1.80.0
|
||||
google.golang.org/protobuf v1.36.11
|
||||
gorm.io/driver/sqlite v1.6.0
|
||||
gorm.io/gorm v1.31.1
|
||||
)
|
||||
|
|
@ -96,7 +97,6 @@ require (
|
|||
golang.zx2c4.com/wintun v0.0.0-20230126152724-0fa3db229ce2 // indirect
|
||||
golang.zx2c4.com/wireguard v0.0.0-20250521234502-f333402bd9cb // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260401024825-9d38bb4040a9 // indirect
|
||||
google.golang.org/protobuf v1.36.11 // indirect
|
||||
gvisor.dev/gvisor v0.0.0-20260122175437-89a5d21be8f0 // indirect
|
||||
lukechampine.com/blake3 v1.4.1 // indirect
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1091,7 +1091,7 @@ func NormalizeGeositeCountryCodes(path string) error {
|
|||
return fmt.Errorf("failed to serialize normalized geosite file %s: %w", path, err)
|
||||
}
|
||||
|
||||
if err := os.WriteFile(path, normalized, 0644); err != nil {
|
||||
if err := os.WriteFile(path, normalized, 0o644); err != nil {
|
||||
return fmt.Errorf("failed to write normalized geosite file %s: %w", path, err)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -313,6 +313,7 @@ func normalizeExistingGeositeFiles() {
|
|||
// startTask schedules background jobs (Xray checks, traffic jobs, cron
|
||||
// jobs) which the panel relies on for periodic maintenance and monitoring.
|
||||
func (s *Server) startTask() {
|
||||
normalizeExistingGeositeFiles()
|
||||
s.customGeoService.EnsureOnStartup()
|
||||
err := s.xrayService.RestartXray(true)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue