Add support for proxying through an external command.
Proxy type "exec" can be used to have an external script or binary set up an outgoing connection. Standard input and output will be used to exchange data with the external command. The variables REMOTEADDRESS and REMOTEPORT are set to the intended destination address and port.
This commit is contained in:
parent
fb5588856f
commit
5ae19cb0bb
3 changed files with 68 additions and 12 deletions
|
|
@ -117,6 +117,8 @@ static bool send_proxyrequest(connection_t *c) {
|
|||
case PROXY_SOCKS4A:
|
||||
logger(LOG_ERR, "Proxy type not implemented yet");
|
||||
return false;
|
||||
case PROXY_EXEC:
|
||||
return true;
|
||||
default:
|
||||
logger(LOG_ERR, "Unknown proxy type");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue