From 265229b44b012b3225df73fff49068c01c4f9a7b Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 13 Mar 2019 22:55:01 -0700 Subject: [PATCH] allow to override port --- actix-connect/src/connect.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/actix-connect/src/connect.rs b/actix-connect/src/connect.rs index a82298de..2fd05a17 100644 --- a/actix-connect/src/connect.rs +++ b/actix-connect/src/connect.rs @@ -61,6 +61,12 @@ impl Connect { } } + /// Set port + pub fn set_port(mut self, port: u16) -> Self { + self.port = port; + self + } + /// Host name pub fn host(&self) -> &str { self.req.host()