Skip to content

Commit

Permalink
fix(docker_logs source): Support tcp schema
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeFlag authored Apr 24, 2023
1 parent c10d30b commit e1c0c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub fn docker(host: Option<String>, tls: Option<DockerTlsConfig>) -> crate::Resu
.and_then(|uri| uri.into_parts().scheme);

match scheme.as_ref().map(|scheme| scheme.as_str()) {
Some("http") => {
Some("http") | Some("tcp") => {
let host = get_authority(&host)?;
Docker::connect_with_http(&host, DEFAULT_TIMEOUT, API_DEFAULT_VERSION)
.map_err(Into::into)
Expand Down

0 comments on commit e1c0c02

Please sign in to comment.