Merge pull request #179 from akostadinov/develop
tls_redirection_port feature
This commit is contained in:
commit
0efb142b0b
3 changed files with 7 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ pub struct ConfigToml {
|
|||
pub listen_port: Option<u16>,
|
||||
pub listen_port_tls: Option<u16>,
|
||||
pub listen_ipv6: Option<bool>,
|
||||
pub tls_redirection_port: Option<u16>,
|
||||
pub tcp_listen_backlog: Option<u32>,
|
||||
pub max_concurrent_streams: Option<u32>,
|
||||
pub max_clients: Option<u32>,
|
||||
|
|
@ -107,6 +108,8 @@ impl TryInto<ProxyConfig> for &ConfigToml {
|
|||
// listen port and socket
|
||||
http_port: self.listen_port,
|
||||
https_port: self.listen_port_tls,
|
||||
https_redirection_port: if self.tls_redirection_port.is_some() {
|
||||
self.tls_redirection_port } else { self.listen_port_tls },
|
||||
..Default::default()
|
||||
};
|
||||
ensure!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue