mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-06 12:24:44 +00:00
- parseDNSList: split on comma or any unicode.IsSpace rune so tabs and newlines in ARTEX_TASK_DNS act as separators, not address bytes. - proxySpec: add HostConfig.Dns only when the list is non-empty so the serialized spec is byte-identical when ARTEX_TASK_DNS is unset. - workerSpec: drop Dns entirely — the worker sits on the --internal task network and resolves through the egress proxy; setting Dns there would relay worker DNS around the proxy. - add cmd/artex-runner/main_test.go: TestParseDNSList covers valid comma/space/mixed/newline-separated lists, IPv6, empty and separator-only input, invalid entries dropped (with valid kept), hostnames dropped, and asserts every output entry parses as an IP.