Skip to content

Commit

Permalink
Fix https_proxy example to work on proxies running on default port
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-signal authored Feb 26, 2025
1 parent 0a379b3 commit f5fc15b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/net/examples/https_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async fn main() {
proxy_url.host_str().expect("proxy host was not provided"),
);
let proxy_port = proxy_url
.port()
.port_or_known_default()
.expect("proxy port was not provided")
.try_into()
.expect("proxy port was zero");
Expand Down

0 comments on commit f5fc15b

Please sign in to comment.