mirror of
https://github.com/nektos/act.git
synced 2026-04-25 17:05:50 +03:00
[PR #5956] Limit servers to IPv4 to make them work with WSL (only for WSL environments) #2637
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#2637
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/5956
Author: @sh41
Created: 10/29/2025
Status: 🔄 Open
Base:
master← Head:issue-1696📝 Commits (2)
f71eae4Limit servers to IPv4 to make them work with WSLb18c7bcfeat: make artifact and cache server network stack configurable📊 Changes
7 files changed (+154 additions, -12 deletions)
View changed files
📝
cmd/input.go(+2 -0)📝
cmd/root.go(+41 -2)📝
cmd/root_test.go(+95 -0)📝
pkg/artifactcache/handler.go(+3 -2)📝
pkg/artifactcache/handler_test.go(+3 -3)📝
pkg/artifacts/server.go(+9 -4)📝
pkg/artifacts/server_test.go(+1 -1)📄 Description
Summary
Builds on the work by @stickeegreg in #5912 and responds to the comment from @ChristopherHX to making the default network stack for the artifact and cache services
tcp4if running in WSL. Also added the option to configure via CLI flags.Changes
WSL_DISTRO_NAMEis set: Usestcp4(IPv4-only) when launching the artifact & cache services to avoid EHOSTUNREACH/ECONNREFUSED errors (see #2636 & #1866)tcp(dual-stack IPv4/IPv6) as before.--artifact-server-networkand--cache-server-networkCLI flags with validation for valid stack values (tcp,tcp4,tcp6)StartHandler()andServe()to accept network parameterUsage
Related Issues
Fixes #2636 - ECONNREFUSED to artifact service on WSL2
Fixes #1866 - Cache server EHOSTUNREACH on WSL2
Based on #5912 - Initial hardcoded fix
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.