Disable PMTU discovery when TCPOnly is used.
[oweals/tinc.git] / src / net_setup.c
index 17c0425..8eb3e60 100644 (file)
@@ -588,7 +588,7 @@ static bool setup_myself(void) {
                free(mode);
        }
 
-       choice = true;
+       choice = !(myself->options & OPTION_TCPONLY);
        get_config_bool(lookup_config(config_tree, "PMTUDiscovery"), &choice);
 
        if(choice) {