]> tinc-vpn.org Git - tinc/blobdiff - src/conf.c
Added new config variable "ProxyMode". If enabled, all outgoing packets
[tinc] / src / conf.c
index bea38957c189493be40e86ec75ef164359f4e462..90ad58fc09cedf7de0df586de1b7f0a07a080962 100644 (file)
@@ -59,6 +59,7 @@ static internal_config_t hazahaza[] = {
   { "PingTimeout",  pingtimeout,    TYPE_INT },
   { "TapDevice",    tapdevice,      TYPE_NAME },
   { "KeyExpire",    keyexpire,      TYPE_INT },
+  { "ProxyMode",    proxymode,      TYPE_BOOL },
   { NULL, 0, 0 }
 };
 
@@ -71,7 +72,7 @@ add_config_val(config_t **cfg, int argtype, char *val)
   config_t *p;
   char *q;
 
-  p = (config_t*)xmalloc(sizeof(config_t));
+  p = (config_t*)xmalloc(sizeof(*p));
   p->data.val = 0;
   
   switch(argtype)