Skip to content

Commit

Permalink
fixup! fixup! tproxy: allow to specify hostname for upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
nikicat committed Jun 1, 2024
1 parent 3bcb03c commit 2e5d66b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion roles/translator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ async fn main() {
) = broadcast::channel(10);

// Format `Upstream` connection address
let upstream_addr = (proxy_config.upstream_address.as_str(), proxy_config.upstream_port)
let upstream_addr = (
proxy_config.upstream_address.as_str(),
proxy_config.upstream_port,
)
.to_socket_addrs()
.unwrap_or_else(|e| {
panic!(
Expand Down

0 comments on commit 2e5d66b

Please sign in to comment.