File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
287
287
let drain_tx = drain_tx. clone( ) ;
288
288
let client_server_map = client_server_map. clone( ) ;
289
289
290
- let tls_certificate = config . general. tls_certificate. clone( ) ;
290
+ let tls_certificate = get_config ( ) . general. tls_certificate. clone( ) ;
291
291
292
292
tokio:: task:: spawn( async move {
293
293
let start = chrono:: offset:: Utc :: now( ) . naive_utc( ) ;
@@ -298,15 +298,15 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
298
298
shutdown_rx,
299
299
drain_tx,
300
300
admin_only,
301
- tls_certificate. clone ( ) ,
301
+ tls_certificate,
302
302
config. general. log_client_connections,
303
303
)
304
304
. await
305
305
{
306
306
Ok ( ( ) ) => {
307
307
let duration = chrono:: offset:: Utc :: now( ) . naive_utc( ) - start;
308
308
309
- if config . general. log_client_disconnections {
309
+ if get_config ( ) . general. log_client_disconnections {
310
310
info!(
311
311
"Client {:?} disconnected, session duration: {}" ,
312
312
addr,
You can’t perform that action at this time.
0 commit comments