projects
/
project
/
unetd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4804952
)
pex: do not query for hosts with a gateway
author
Felix Fietkau
<nbd@nbd.name>
Mon, 21 Aug 2023 20:36:01 +0000
(22:36 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Mon, 21 Aug 2023 20:36:06 +0000
(22:36 +0200)
If we're not the gateway, we don't care about the result
If we are the gateway, nobody else will have the answer
Signed-off-by: Felix Fietkau <nbd@nbd.name>
pex.c
patch
|
blob
|
history
diff --git
a/pex.c
b/pex.c
index 8d99d505ba834c7bf3f99b085563d0d2b911f1b1..854837c8285d91f92c57b4a45734764810a54fc1 100644
(file)
--- a/
pex.c
+++ b/
pex.c
@@
-344,7
+344,7
@@
network_pex_query_hosts(struct network *net)
void *id;
if ((net->stun.port_ext && host == net->net_config.local_host) ||
- peer->state.connected || peer->endpoint)
+ peer->state.connected || peer->endpoint
|| host->gateway
)
continue;
id = pex_msg_append(PEX_ID_LEN);