Allow PMTUDiscovery in switch and hub modes again.
PMTUDiscovery was disabled in commit d5b56bbba5
because tinc did not handle packets larger than the path MTU in switch and hub
modes. We now allow it again in preparation of proper support, but default to
off.
This commit is contained in:
parent
052ff8b2c5
commit
7242868b64
1 changed files with 6 additions and 3 deletions
|
@ -306,9 +306,12 @@ bool setup_myself(void)
|
||||||
} else
|
} else
|
||||||
routing_mode = RMODE_ROUTER;
|
routing_mode = RMODE_ROUTER;
|
||||||
|
|
||||||
if(routing_mode == RMODE_ROUTER)
|
// Enable PMTUDiscovery by default if we are in router mode.
|
||||||
if(!get_config_bool(lookup_config(myself->connection->config_tree, "PMTUDiscovery"), &choice) || choice)
|
|
||||||
myself->options |= OPTION_PMTU_DISCOVERY;
|
choice = routing_mode == RMODE_ROUTER;
|
||||||
|
get_config_bool(lookup_config(myself->connection->config_tree, "PMTUDiscovery"), &choice);
|
||||||
|
if(choice)
|
||||||
|
myself->options |= OPTION_PMTU_DISCOVERY;
|
||||||
|
|
||||||
get_config_bool(lookup_config(config_tree, "PriorityInheritance"), &priorityinheritance);
|
get_config_bool(lookup_config(config_tree, "PriorityInheritance"), &priorityinheritance);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue