summaryrefslogtreecommitdiff
path: root/lib/hyperstack/cli.rb
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-24 12:27:24 +0300
committerPaul Buetow <paul@buetow.org>2026-05-24 12:27:24 +0300
commitf8ec79495329f21534403fd48505bec6185a7046 (patch)
treec673a2c10d04a4cf8180bb069b6d58df63d21dba /lib/hyperstack/cli.rb
parentcbc74944490a18c2cccbc8a108b3665b2cf3650b (diff)
fix(wireguard): handle leading whitespace in /etc/hosts lines
In prune_host_line, body.split(/\s+/) on a line with leading whitespace produced tokens starting with an empty string, which was then shifted into as ''. This caused the rewritten /etc/hosts entry to lose its IP silently. Fix by stripping the body before splitting: body.strip.split(/\s+/). Refs: hc
Diffstat (limited to 'lib/hyperstack/cli.rb')
0 files changed, 0 insertions, 0 deletions