mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-17 07:14:23 +01:00
sphinx-key: remove tls feature
not needed any longer, mqtts no longer a memory problem to specify mqtt vs mqtts, add the mqtt[s]:// to the broker url
This commit is contained in:
@@ -7,7 +7,7 @@ version = "0.1.0"
|
|||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["std", "tls"]
|
default = ["std"]
|
||||||
no_persist = []
|
no_persist = []
|
||||||
pingpong = []
|
pingpong = []
|
||||||
std = ["sphinx-signer"]
|
std = ["sphinx-signer"]
|
||||||
|
|||||||
@@ -29,10 +29,7 @@ pub fn make_client(
|
|||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
|
||||||
if cfg!(feature = "tls") {
|
conf.crt_bundle_attach = Some(esp_idf_svc::sys::esp_crt_bundle_attach);
|
||||||
conf.crt_bundle_attach = Some(esp_idf_svc::sys::esp_crt_bundle_attach);
|
|
||||||
}
|
|
||||||
|
|
||||||
let mut mqtturl = broker.to_string();
|
let mut mqtturl = broker.to_string();
|
||||||
if !(mqtturl.starts_with("mqtt://") || mqtturl.starts_with("mqtts://")) {
|
if !(mqtturl.starts_with("mqtt://") || mqtturl.starts_with("mqtts://")) {
|
||||||
let scheme = if mqtturl.contains("8883") {
|
let scheme = if mqtturl.contains("8883") {
|
||||||
|
|||||||
Reference in New Issue
Block a user