WIP: More porting and work on persistence

Ported packet PROOFs.
Implemented Transport probe destination.
SPIFFs filesystem checks and formatting when necessary.
This commit is contained in:
attermann committed 2023-12-20 11:52:48 -07:00
1 parent 7aac0f4355
commit 03cfb1c03f
15 files changed
+392 -118

No files matched your search

+9 -9
View File
@@ -265,17 +265,17 @@ using namespace RNS::Utilities;
except Exception as e:
RNS.log("Could not load tunnel table from storage, the contained exception was: "+str(e), RNS.LOG_ERROR)
if RNS.Reticulum.probe_destination_enabled():
Transport.probe_destination = RNS.Destination(Transport.identity, RNS.Destination.IN, RNS.Destination.SINGLE, Transport.APP_NAME, "probe")
Transport.probe_destination.accepts_links(False)
Transport.probe_destination.set_proof_strategy(RNS.Destination.PROVE_ALL)
Transport.probe_destination.announce()
RNS.log("Transport Instance will respond to probe requests on "+str(Transport.probe_destination), RNS.LOG_NOTICE)
else:
Transport.probe_destination = None
*/
// Create transport-specific destination for probe requests
if (Reticulum::probe_destination_enabled()) {
Destination probe_destination(_identity, Type::Destination::IN, Type::Destination::SINGLE, APP_NAME, "probe");
probe_destination.accepts_links(false);
probe_destination.set_proof_strategy(Type::Destination::PROVE_ALL);
probe_destination.announce();
notice("Transport Instance will respond to probe requests on " + probe_destination.toString());
}
verbose("Transport instance " + _identity.toString() + " started");
_start_time = OS::time();
}