From 28467d98019c21c5fbff340a0f849a09aab2a946 Mon Sep 17 00:00:00 2001 From: Ari <67370329+arihav@users.noreply.github.com> Date: Wed, 6 Nov 2024 11:55:55 +0200 Subject: [PATCH] Update plugins/localhost/src/lib.rs Co-authored-by: Fabian-Lars --- plugins/localhost/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/localhost/src/lib.rs b/plugins/localhost/src/lib.rs index ddf4eb2bd..ae77cd806 100644 --- a/plugins/localhost/src/lib.rs +++ b/plugins/localhost/src/lib.rs @@ -59,8 +59,9 @@ impl Builder { } } - pub fn host>(mut self, host: H) -> Self { - self.host = Some(host.as_ref().to_string()); + // Change the host the plugin binds to. Defaults to `localhost`. + pub fn host>(mut self, host: H) -> Self { + self.host = Some(host.into()); self }