diff --git a/bin/elastic/elastic b/bin/elastic/elastic index baee3d8..0d2b66b 100755 Binary files a/bin/elastic/elastic and b/bin/elastic/elastic differ diff --git a/bin/ss/ss b/bin/ss/ss index 30808f9..c903649 100755 Binary files a/bin/ss/ss and b/bin/ss/ss differ diff --git a/cmd/ss/main.go b/cmd/ss/main.go index c0e4fde..fd6bc29 100644 --- a/cmd/ss/main.go +++ b/cmd/ss/main.go @@ -44,7 +44,7 @@ func main() { reportData := make([][]string, len(records)) for idx, record := range records { q := models.LocationsPackages.Query() - like := fmt.Sprintf("%%%s%%", record) + like := fmt.Sprintf("%%%s%%", record[0]) q.Apply(models.SelectWhere.LocationsPackages.CurrentPath.Like(like)) res, err := q.All(context.Background(), bobDB) assertNoErr(err) diff --git a/cmd/ss/server.go b/cmd/ss/server.go index bc5ac38..680dfaa 100644 --- a/cmd/ss/server.go +++ b/cmd/ss/server.go @@ -35,8 +35,8 @@ func server() error { http.HandleFunc("/mysql", state.connectDB) http.HandleFunc("/report", state.report) - slog.Info("listening", "addr", "4001") - err := http.ListenAndServe(":4001", http.DefaultServeMux) + slog.Info("listening", "addr", "62120") + err := http.ListenAndServe(":62120", http.DefaultServeMux) if err != nil { return err }