miniroon

Simplistic macaroon-based authorization for Unix systems
git clone https://ccx.te2000.cz/git/miniroon
Log | Files | Refs

commit 00a85994ac403d816340f4e1610ca3ded79a7eb2
parent 19b552ecd452ea490aad26498d6ae33c9666d5df
Author: Jan Pobrislo <ccx@te2000.cz>
Date:   Mon, 26 Aug 2024 10:58:03 +0000

Remove commented out code

Diffstat:
Msrc/ucspi-socksserver.c | 20--------------------
1 file changed, 0 insertions(+), 20 deletions(-)

diff --git a/src/ucspi-socksserver.c b/src/ucspi-socksserver.c @@ -372,32 +372,12 @@ void do_connect(unsigned char socks_version, socks5_addr_type_t addr_type, char switch (addr_type) { case SOCKS5_ADDR_TYPE_IP4: socks_env_ip4(buf); - /* - char v4_address[16]; - snprintf(v4_address, sizeof(v4_address), "%hhu.%hhu.%hhu.%hhu", - buf[0], buf[1], buf[2], buf[3]); - const char *argv_ip4[] = {"s6-tcpclient", "-v4", v4_address, port_string, "ucspi-socksserver-connected", "s6-ioconnect", 0}; - argv = argv_ip4; - */ break; case SOCKS5_ADDR_TYPE_IP6: socks_env_ip6(buf); - /* - char v6_address[41]; - snprintf(v6_address, sizeof(v6_address), - "%02hhx%02hhx:%02hhx%02hhx:%02hhx%02hhx:%02hhx%02hhx:%02hhx%02hhx:%02hhx%02hhx:%02hhx%02hhx:%02hhx%02hhx", - buf[0x0], buf[0x1], buf[0x2], buf[0x3], buf[0x4], buf[0x5], buf[0x6], buf[0x7], - buf[0x8], buf[0x9], buf[0xa], buf[0xb], buf[0xc], buf[0xd], buf[0xe], buf[0xf]); - const char *argv_ip6[] = {"s6-tcpclient", "-v6", v6_address, port_string, "ucspi-socksserver-connected", "s6-ioconnect", 0}; - argv = argv_ip4; - */ break; case SOCKS5_ADDR_TYPE_DOMAIN: socks_env_dns(buf); - /* - const char *argv_d[] = {"s6-tcpclient", "-v", buf, port_string, "ucspi-socksserver-connected", "s6-ioconnect", 0}; - argv = argv_d; - */ break; default: strerr_dief1x(110, "Internal error: unhandled address type");