(&mut self, insecure: bool)
| 1596 | } |
| 1597 | |
| 1598 | fn set_insecure(&mut self, insecure: bool) -> Result<(), Error> { |
| 1599 | if insecure && !self.is_insecure() { |
| 1600 | self.get_config_mut().insecure = true; |
| 1601 | self.reset_http_client(); |
| 1602 | } |
| 1603 | if self.is_insecure() { |
| 1604 | self.get_logger().warn( |
| 1605 | "TLS certificate validation is disabled (insecure mode). Downloaded drivers and browsers cannot be verified", |
| 1606 | ); |
| 1607 | } |
| 1608 | Ok(()) |
| 1609 | } |
| 1610 | |
| 1611 | fn get_http_client(&self) -> Result<&Client, Error> { |
| 1612 | if let Some(http_client) = self.get_http_client_cell().get() { |
no test coverage detected