mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-30 02:32:24 +01:00
feat: added option to create an alias during mapping
This commit is contained in:
@@ -50,6 +50,7 @@ fn merge_mappings(mappings: Vec<MappingDto>) -> Vec<MappingDto> {
|
||||
|
||||
// Logic for match_as_ascii: true, if one of them is true
|
||||
entry.match_as_ascii |= m.match_as_ascii;
|
||||
entry.create_alias |= m.create_alias;
|
||||
|
||||
if let Some(mut mapper) = m.mapper.take() {
|
||||
entry.mapper.get_or_insert(vec![]).append(&mut mapper);
|
||||
@@ -136,4 +137,4 @@ pub fn read_mappings(mappings_file: &str, resolve_env: bool) -> Result<Option<Ma
|
||||
Some(dto) => Ok(Some(Mappings::from(&dto))),
|
||||
None => Ok(None),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user