X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet_setup.c;h=7d20803d28f755843d5ed2dbb6b7acce4c784f6d;hp=369c8a40017e14fb60c6d388665a4aaa7ceea073;hb=b45511118421920771f5dcd5e4bafc04376e4450;hpb=95928f7c2910a7da01a89cdc63c86c4d87fac004 diff --git a/src/net_setup.c b/src/net_setup.c index 369c8a40..7d20803d 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -303,6 +303,12 @@ bool setup_myself(void) { if(choice) myself->options |= OPTION_PMTU_DISCOVERY; + choice = true; + get_config_bool(lookup_config(config_tree, "ClampMSS"), &choice); + get_config_bool(lookup_config(myself->connection->config_tree, "ClampMSS"), &choice); + if(choice) + myself->options |= OPTION_CLAMP_MSS; + get_config_bool(lookup_config(config_tree, "PriorityInheritance"), &priorityinheritance); #if !defined(SOL_IP) || !defined(IP_TOS)