nat: try known mapping peers before observer-only fallback

This commit is contained in:
evgeny committed 2026-10-17 17:57:15 +02:00
1 parent b9a5981f5c
commit 5a8b05c50f
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -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) {