mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-20 08:44:26 +01:00
configurable within time for timestamp auth
This commit is contained in:
@@ -146,7 +146,7 @@ fn metrics_to_status(metrics: ConnectionMetrics, client_connected: bool) -> Opti
|
|||||||
|
|
||||||
fn config(settings: &Settings) -> Config {
|
fn config(settings: &Settings) -> Config {
|
||||||
use librumqttd::rumqttlog::Config as RouterConfig;
|
use librumqttd::rumqttlog::Config as RouterConfig;
|
||||||
use librumqttd::{ConnectionSettings, ConsoleSettings, ServerSettings};
|
use librumqttd::{ConnectionSettings, SphinxLoginCredentials, ConsoleSettings, ServerSettings};
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::net::{Ipv4Addr, SocketAddrV4};
|
use std::net::{Ipv4Addr, SocketAddrV4};
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
@@ -173,7 +173,9 @@ fn config(settings: &Settings) -> Config {
|
|||||||
max_inflight_count: 200,
|
max_inflight_count: 200,
|
||||||
max_inflight_size: 1024,
|
max_inflight_size: 1024,
|
||||||
login_credentials: None,
|
login_credentials: None,
|
||||||
sphinx_auth: true,
|
sphinx_auth: Some(SphinxLoginCredentials {
|
||||||
|
within: None,
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user