feat: a lot of things(i lost track)
This commit is contained in:
parent
29f3ab6348
commit
98193a58d8
42 changed files with 1207 additions and 366 deletions
|
|
@ -8,12 +8,14 @@ use log::{error, info};
|
|||
use tokio::net::TcpListener;
|
||||
use tokio::task;
|
||||
use rust_nex::common::setup;
|
||||
use rust_nex::executables::common::{OWN_IP_PRIVATE, SERVER_PORT};
|
||||
use rust_nex::executables::common::{RemoteController, RemoteControllerManagement, OWN_IP_PRIVATE, SERVER_PORT};
|
||||
use rust_nex::executables::common::ServerCluster::Secure;
|
||||
use rust_nex::executables::common::ServerType::Backend;
|
||||
use rust_nex::nex::matchmake::MatchmakeManager;
|
||||
use rust_nex::nex::remote_console::RemoteConsole;
|
||||
use rust_nex::nex::user::User;
|
||||
use rust_nex::reggie::get_configured_tls_acceptor;
|
||||
use rust_nex::rmc::protocols::new_rmc_gateway_connection;
|
||||
use rust_nex::rmc::protocols::{new_rmc_gateway_connection, OnlyRemote};
|
||||
use rust_nex::rnex_proxy_common::ConnectionInitData;
|
||||
use rust_nex::rmc::protocols::RemoteInstantiatable;
|
||||
|
||||
|
|
@ -22,6 +24,16 @@ use rust_nex::rmc::protocols::RemoteInstantiatable;
|
|||
async fn main() {
|
||||
setup();
|
||||
|
||||
let conn = rust_nex::reggie::rmc_connect_to(
|
||||
"agmp-control.spfn.net",
|
||||
Backend{
|
||||
name: "agmp-secure-1.spfn.net".to_string(),
|
||||
cluster: Secure
|
||||
},
|
||||
|r| Arc::new(OnlyRemote::<RemoteController>::new(r))
|
||||
).await;
|
||||
let conn = conn.unwrap();
|
||||
|
||||
let acceptor = get_configured_tls_acceptor().await;
|
||||
|
||||
let listen = TcpListener::bind(SocketAddrV4::new(*OWN_IP_PRIVATE, *SERVER_PORT)).await.unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue