auto-detect artifact cache IP instead of using localhost

localhost isnt guranteed to exist
This commit is contained in:
Andrew Cassidy 2025-10-16 00:06:22 -07:00
parent bfb2637600
commit ca5f1437b6
No known key found for this signature in database

View file

@ -117,7 +117,7 @@ func setupCache(cfg *config.Config, envs map[string]string) *cacheproxy.Handler
cacheServer, err := artifactcache.StartHandler(
cfg.Cache.Dir,
"localhost",
"", // automatically detect
cfg.Cache.Port,
cacheSecret,
log.StandardLogger().WithField("module", "cache_request"),