if(!proxytype) {
c->socket = socket(c->address.sa.sa_family, SOCK_STREAM, IPPROTO_TCP);
} else if(proxytype == PROXY_EXEC) {
+ c->status.proxy_passed = true;
do_outgoing_pipe(c, proxyhost);
} else {
proxyai = str2addrinfo(proxyhost, proxyport, SOCK_STREAM);
/*
proxy.c -- Proxy handling functions.
- Copyright (C) 2015-2016 Guus Sliepen <guus@tinc-vpn.org>
+ Copyright (C) 2015-2017 Guus Sliepen <guus@tinc-vpn.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
}
case PROXY_EXEC:
- c->status.proxy_passed = true;
- send_id(c);
- return true;
+ abort();
default:
logger(LOG_ERR, "Unknown proxy type");