allow self-signed certs, sending files works now

This commit is contained in:
Joe Ardent 2025-08-03 16:03:16 -07:00
parent 9ea3a3a1d6
commit 2ff3e3971d

View file

@ -85,10 +85,14 @@ impl JoecalService {
socket.set_multicast_ttl_v4(8)?; // 8 hops out from localnet
socket.join_multicast_v4(MULTICAST_IP, Ipv4Addr::from_bits(0))?;
let client = reqwest::ClientBuilder::new()
.danger_accept_invalid_certs(true)
.build()?;
Ok(Self {
device,
config,
client: reqwest::Client::new(),
client,
socket: socket.into(),
transfer_event_tx,
peers: Default::default(),