]> tinc-vpn.org Git - tinc/blobdiff - src/net_setup.c
Set the default for UDPRcvBuf and UDPSndBuf to 1M.
[tinc] / src / net_setup.c
index d1d5c04be36ff5bfbbe002b106551a789a1635f2..fee4159fabc16ed9bfb096452e8cd4cb12f14514 100644 (file)
@@ -854,14 +854,14 @@ static bool setup_myself(void) {
        }
 
        if(get_config_int(lookup_config(config_tree, "UDPRcvBuf"), &udp_rcvbuf)) {
-               if(udp_rcvbuf <= 0) {
+               if(udp_rcvbuf < 0) {
                        logger(DEBUG_ALWAYS, LOG_ERR, "UDPRcvBuf cannot be negative!");
                        return false;
                }
        }
 
        if(get_config_int(lookup_config(config_tree, "UDPSndBuf"), &udp_sndbuf)) {
-               if(udp_sndbuf <= 0) {
+               if(udp_sndbuf < 0) {
                        logger(DEBUG_ALWAYS, LOG_ERR, "UDPSndBuf cannot be negative!");
                        return false;
                }