feat(*) add DNS name support for --remote argument in both Client and

Server
This commit is contained in:
Datong Sun
2021-11-18 04:46:18 -08:00
parent 49cc6a6865
commit 91988520e5
3 changed files with 28 additions and 20 deletions

View File

@@ -396,11 +396,10 @@ impl Stack {
} else {
trace!("Cache miss, checking the shared tuples table for connection");
let sender;
{
let sender = {
let tuples = shared.tuples.read().unwrap();
sender = tuples.get(&tuple).cloned();
}
tuples.get(&tuple).cloned()
};
if let Some(c) = sender {
trace!("Storing connection information into local tuples");