Proxymode removed.
This commit is contained in:
parent
269067bb22
commit
8caa1b9d75
3 changed files with 1 additions and 9 deletions
|
@ -59,7 +59,6 @@ static internal_config_t hazahaza[] = {
|
||||||
{ "PingTimeout", pingtimeout, TYPE_INT },
|
{ "PingTimeout", pingtimeout, TYPE_INT },
|
||||||
{ "TapDevice", tapdevice, TYPE_NAME },
|
{ "TapDevice", tapdevice, TYPE_NAME },
|
||||||
{ "KeyExpire", keyexpire, TYPE_INT },
|
{ "KeyExpire", keyexpire, TYPE_INT },
|
||||||
{ "ProxyMode", proxymode, TYPE_BOOL },
|
|
||||||
{ NULL, 0, 0 }
|
{ NULL, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -40,8 +40,7 @@ typedef enum which_t {
|
||||||
tapdevice,
|
tapdevice,
|
||||||
allowconnect,
|
allowconnect,
|
||||||
pingtimeout,
|
pingtimeout,
|
||||||
keyexpire,
|
keyexpire
|
||||||
proxymode
|
|
||||||
} which_t;
|
} which_t;
|
||||||
|
|
||||||
typedef struct config_t {
|
typedef struct config_t {
|
||||||
|
|
|
@ -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;
|
conn_list_t *cl;
|
||||||
cp
|
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((cl = lookup_conn(to)) == NULL)
|
||||||
{
|
{
|
||||||
if(debug_lvl > 2)
|
if(debug_lvl > 2)
|
||||||
|
|
Loading…
Reference in a new issue