summaryrefslogtreecommitdiff
path: root/lib/hyperstack
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hyperstack')
-rw-r--r--lib/hyperstack/wireguard.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hyperstack/wireguard.rb b/lib/hyperstack/wireguard.rb
index 4e909ba..46bd682 100644
--- a/lib/hyperstack/wireguard.rb
+++ b/lib/hyperstack/wireguard.rb
@@ -209,7 +209,7 @@ module HyperstackVM
return [line, []] if stripped.empty? || stripped.start_with?('#')
body, comment = line.split('#', 2)
- tokens = body.split(/\s+/)
+ tokens = body.strip.split(/\s+/)
return [line, []] if tokens.empty?
ip = tokens.shift