Skip to content

Commit

Permalink
Merge pull request #64 from Xunjin/chore/updates-wow-login-messages-a…
Browse files Browse the repository at this point in the history
…nd-wow-srp

chore: updates wow_login_messages to 0.3 and wow_srp to 0.6
  • Loading branch information
Victov authored Dec 29, 2023
2 parents d63626e + fa10e19 commit e88d893
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions auth_server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
wow_srp = '0.5.0'
wow_srp = '0.6.0'
byteorder = { version = '1' }
async-std = { version = "1.12", features = ["unstable", "attributes"] }
anyhow = { version = "*" }
Expand All @@ -20,4 +20,4 @@ tracing-subscriber = { version = "0.3", features = ["env-filter", "time"] }
async-trait = "0.1"
byte = "0.2"
cmdparse = { version = "0.1" }
wow_login_messages = { version="0.2", features=["async-std"] }
wow_login_messages = { version="0.3", features=["async-std"] }
2 changes: 1 addition & 1 deletion auth_server/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub async fn handle_logon_proof_srp(
clients: ActiveClients,
auth_database: std::sync::Arc<AuthDatabase>,
) -> Result<ClientState> {
let client_public_key = match PublicKey::from_le_bytes(&logon_proof.client_public_key) {
let client_public_key = match PublicKey::from_le_bytes(logon_proof.client_public_key) {
Ok(key) => key,
Err(_) => {
reject_logon_proof(stream, CMD_AUTH_LOGON_PROOF_Server_LoginResult::FailIncorrectPassword).await?;
Expand Down
4 changes: 2 additions & 2 deletions auth_server/src/realms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ async fn get_realm_list(auth_database: std::sync::Arc<AuthDatabase>, account_id:
let mut flag = Realm_RealmFlag::new(realm.flags, None);

if realm.online == 0 {
flag = flag.set_OFFLINE();
flag = flag.set_offline();
}

let realm_type: RealmType = RealmType::try_from(realm.realm_type).unwrap_or_default();

realms.push(Realm {
realm_type,
locked: 0,
locked: false,
flag,
name: realm.name,
address: realm.ip,
Expand Down

0 comments on commit e88d893

Please sign in to comment.