diff options
Diffstat (limited to '')
| -rw-r--r-- | src/bin/client/connection.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/client/connection.rs b/src/bin/client/connection.rs index f88f62b..e808d90 100644 --- a/src/bin/client/connection.rs +++ b/src/bin/client/connection.rs | |||
| @@ -8,7 +8,7 @@ use parking_lot::Mutex; | |||
| 8 | use std::error::Error; | 8 | use std::error::Error; |
| 9 | use zagan_bet::client::transport::{self, TrustPrompt}; | 9 | use zagan_bet::client::transport::{self, TrustPrompt}; |
| 10 | use zagan_bet::client::ui::first_contact_lines; | 10 | use zagan_bet::client::ui::first_contact_lines; |
| 11 | use zagan_bet::version::{is_newer, VERSION}; | 11 | use zagan_bet::version::{VERSION, is_newer}; |
| 12 | 12 | ||
| 13 | pub use zagan_bet::client::transport::TlsStream; | 13 | pub use zagan_bet::client::transport::TlsStream; |
| 14 | 14 | ||
| @@ -21,7 +21,7 @@ pub fn set_unsafe_mode(unsafe_mode: bool) { | |||
| 21 | pub fn connect( | 21 | pub fn connect( |
| 22 | addr: &str, | 22 | addr: &str, |
| 23 | conn: &rusqlite::Connection, | 23 | conn: &rusqlite::Connection, |
| 24 | ) -> Result<(TlsStream, Option<String>), Box<dyn Error>> { | 24 | ) -> Result<(TlsStream, Option<String>, u64), Box<dyn Error>> { |
| 25 | let unsafe_mode = *UNSAFE_MODE.lock(); | 25 | let unsafe_mode = *UNSAFE_MODE.lock(); |
| 26 | 26 | ||
| 27 | // The terminal has no dialog: print the first-contact notice and trust. | 27 | // The terminal has no dialog: print the first-contact notice and trust. |
| @@ -53,5 +53,5 @@ pub fn connect( | |||
| 53 | println!("Authentication failed: {error}"); | 53 | println!("Authentication failed: {error}"); |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | Ok((connected.stream, connected.user)) | 56 | Ok((connected.stream, connected.user, connected.server_time)) |
| 57 | } | 57 | } |
