Proxymode removed.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 14 May 2000 11:39:18 +0000 (11:39 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 14 May 2000 11:39:18 +0000 (11:39 +0000)
src/conf.c
src/conf.h
src/net.c

index 90ad58f..6f949f5 100644 (file)
@@ -59,7 +59,6 @@ static internal_config_t hazahaza[] = {
   { "PingTimeout",  pingtimeout,    TYPE_INT },
   { "TapDevice",    tapdevice,      TYPE_NAME },
   { "KeyExpire",    keyexpire,      TYPE_INT },
   { "PingTimeout",  pingtimeout,    TYPE_INT },
   { "TapDevice",    tapdevice,      TYPE_NAME },
   { "KeyExpire",    keyexpire,      TYPE_INT },
-  { "ProxyMode",    proxymode,      TYPE_BOOL },
   { NULL, 0, 0 }
 };
 
   { NULL, 0, 0 }
 };
 
index 673573b..0d66313 100644 (file)
@@ -40,8 +40,7 @@ typedef enum which_t {
   tapdevice,
   allowconnect,
   pingtimeout,
   tapdevice,
   allowconnect,
   pingtimeout,
-  keyexpire,
-  proxymode
+  keyexpire
 } which_t;
 
 typedef struct config_t {
 } which_t;
 
 typedef struct config_t {
index 58f3e02..7b9133e 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -258,14 +258,8 @@ cp
 */
 int send_packet(ip_t to, vpn_packet_t *packet)
 {
 */
 int send_packet(ip_t to, vpn_packet_t *packet)
 {
-  config_t const *cfg;
   conn_list_t *cl;
 cp
   conn_list_t *cl;
 cp
-  if(!(cfg = get_config_val(proxymode)))               /* In case we are in proxy mode, just send everything to our uplink. */
-    cl = conn_list;
-  else
-    cl = lookup_conn(to);
-
   if((cl = lookup_conn(to)) == NULL)
     {
       if(debug_lvl > 2)
   if((cl = lookup_conn(to)) == NULL)
     {
       if(debug_lvl > 2)