|
|
|
@ -7,11 +7,11 @@ use clap::{App, Arg}; |
|
|
|
use crossbeam_channel;
|
|
|
|
use env_logger;
|
|
|
|
use log::info;
|
|
|
|
use solstice_proto::config;
|
|
|
|
use tokio::net::TcpStream;
|
|
|
|
use tokio::sync::mpsc;
|
|
|
|
|
|
|
|
mod client;
|
|
|
|
mod config;
|
|
|
|
mod context;
|
|
|
|
mod control;
|
|
|
|
mod dispatcher;
|
|
|
|
@ -41,8 +41,8 @@ async fn run_client( |
|
|
|
) -> anyhow::Result<()> {
|
|
|
|
let address = format!(
|
|
|
|
"{}:{}",
|
|
|
|
solstice_proto::config::SERVER_HOST,
|
|
|
|
solstice_proto::config::SERVER_PORT
|
|
|
|
config::SERVER_HOST,
|
|
|
|
config::SERVER_PORT
|
|
|
|
);
|
|
|
|
info!("Connecting to server at {}.", address);
|
|
|
|
let stream = TcpStream::connect(address)
|
|
|
|
@ -51,8 +51,8 @@ async fn run_client( |
|
|
|
info!("Connection successful.");
|
|
|
|
|
|
|
|
let credentials = solstice_proto::server::Credentials::new(
|
|
|
|
solstice_proto::config::USERNAME.to_string(),
|
|
|
|
solstice_proto::config::PASSWORD.to_string(),
|
|
|
|
config::USERNAME.to_string(),
|
|
|
|
config::PASSWORD.to_string(),
|
|
|
|
)
|
|
|
|
.context("validating credentials")?;
|
|
|
|
|
|
|
|
|