aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-09-18 14:13:26 +0100
committerdiogo464 <[email protected]>2025-09-18 14:13:26 +0100
commit8a03983281894866e25ac71774fd71d025185b3f (patch)
treeac1dc07310a254cba7f2b8ca16a83e8ebde3771c /src
parent49aa9352c52b92e9bc4326080c87c9a6a0a97813 (diff)
fix: trim hostname to remove newlines
Diffstat (limited to 'src')
-rw-r--r--src/context.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/context.rs b/src/context.rs
index 8032212..89e2c3e 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -77,4 +77,5 @@ async fn get_hostname() -> Result<String> {
77 } else { 77 } else {
78 std::env::var("HOSTNAME").context("reading HOSTNAME env var") 78 std::env::var("HOSTNAME").context("reading HOSTNAME env var")
79 } 79 }
80 .map(|hostname| hostname.trim().to_string())
80} 81}