[优化] 添加 OpenRestyResolvers 配置支持自定义 DNS 解析器

This commit is contained in:
ryan
2026-05-26 09:10:08 +08:00
parent 83a426d3d6
commit bddf641bf1
8 changed files with 41 additions and 9 deletions
@@ -213,6 +213,7 @@ func (e *DockerExecutor) runContainer(ctx context.Context) error {
runArgs := []string{
"run", "-d",
"--name", e.ContainerName,
"--restart", "always",
"-p", "80:80",
"-p", "443:443",
"-p", fmt.Sprintf("127.0.0.1:%d:%d", e.OpenrestyObservabilityPort, e.OpenrestyObservabilityPort),
@@ -399,6 +399,7 @@ func TestDockerExecutorRunContainerMountsManagedFiles(t *testing.T) {
expectedArgs := []string{
"run", "-d",
"--name", "openflare-openresty",
"--restart", "always",
"-p", "80:80",
"-p", "443:443",
"-p", "127.0.0.1:18081:18081",