If PMTUDiscovery is not set, do not forward packets via TCP unnecessarily.
This commit is contained in:
parent
7e4d57adf5
commit
2c67eafc6e
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ static void send_udppacket(node_t *n, vpn_packet_t *origpkt)
|
|||
return;
|
||||
}
|
||||
|
||||
if(!n->minmtu && (inpkt->data[12] | inpkt->data[13])) {
|
||||
if(n->options & OPTION_PMTU_DISCOVERY && !n->minmtu && (inpkt->data[12] | inpkt->data[13])) {
|
||||
ifdebug(TRAFFIC) logger(LOG_INFO,
|
||||
_("No minimum MTU established yet for %s (%s), forwarding via TCP"),
|
||||
n->name, n->hostname);
|
||||
|
|
Loading…
Reference in a new issue