summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9238747)
are sent to the uplink (ConnectTo), which will have to forward them for
us (kernel should do that). This is for people behind firewalls.
{ "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 },
allowconnect,
pingtimeout,
keyexpire,
allowconnect,
pingtimeout,
keyexpire,
} which_t;
typedef struct config_t {
} which_t;
typedef struct config_t {
*/
int send_packet(ip_t to, vpn_packet_t *packet)
{
*/
int send_packet(ip_t to, vpn_packet_t *packet)
{
+ 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)