mirror of
https://github.com/v0l/zap-stream-core.git
synced 2025-06-16 01:28:08 +00:00
fix: match endpoint
This commit is contained in:
@ -532,7 +532,7 @@ impl ZapStreamOverseer {
|
||||
let default = endpoints.iter().max_by_key(|e| e.cost);
|
||||
Ok(endpoints
|
||||
.iter()
|
||||
.find(|e| e.name == connection.endpoint)
|
||||
.find(|e| e.name.eq_ignore_ascii_case(connection.endpoint))
|
||||
.or(default)
|
||||
.unwrap()
|
||||
.clone())
|
||||
|
Reference in New Issue
Block a user