allow self-signed certs, sending files works now
This commit is contained in:
parent
9ea3a3a1d6
commit
2ff3e3971d
1 changed files with 5 additions and 1 deletions
|
@ -85,10 +85,14 @@ impl JoecalService {
|
||||||
socket.set_multicast_ttl_v4(8)?; // 8 hops out from localnet
|
socket.set_multicast_ttl_v4(8)?; // 8 hops out from localnet
|
||||||
socket.join_multicast_v4(MULTICAST_IP, Ipv4Addr::from_bits(0))?;
|
socket.join_multicast_v4(MULTICAST_IP, Ipv4Addr::from_bits(0))?;
|
||||||
|
|
||||||
|
let client = reqwest::ClientBuilder::new()
|
||||||
|
.danger_accept_invalid_certs(true)
|
||||||
|
.build()?;
|
||||||
|
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
device,
|
device,
|
||||||
config,
|
config,
|
||||||
client: reqwest::Client::new(),
|
client,
|
||||||
socket: socket.into(),
|
socket: socket.into(),
|
||||||
transfer_event_tx,
|
transfer_event_tx,
|
||||||
peers: Default::default(),
|
peers: Default::default(),
|
||||||
|
|
Loading…
Reference in a new issue