nat: try known mapping peers before observer-only fallback
This commit is contained in:
1 parent
b9a5981f5c
commit
5a8b05c50f
2 files changed
+3
-2
No files matched your search
@@ -290,7 +290,7 @@ static int select_pair(struct nat_socket *state) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!best.group && single.group && !state->using_fallback) {
|
||||
if (!best.group && single.group && !state->using_fallback && !state->prefer_fresh) {
|
||||
best = single; observer_address = single_address; memcpy(observer_key, single_key, 32);
|
||||
}
|
||||
if (!best.group) {
|
||||
|
||||
Reference in new issue
Block a user