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 }