diff --git a/CHANGELOG.md b/CHANGELOG.md index c010fd5..2ee8c1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # CHANGELOG -* **2024.02.23 Current** +* **2024.02.26 Current** + * `ts-warp.c`, `Makefile`: `LIBSSH2` compilation issues under Linux * `inifile.c`: Enable default proxy port-numbers based on `proxy_type`: Socks4/5: 1080, HTTPS: 3128, SSH2: 22 * `examples\ts-warp.ini`: Ports specified for `HTTPS` and `SSH2` proxies * `ts-warp.c`: Prevent `HTTP`-port overwriting `TRANSPARENT`-port diff --git a/Makefile b/Makefile index cca8702..0f510fc 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ ts-warp: $(WARP_OBJS) $(CC) -o $@ $(WARP_OBJS) ts-warp-ssh2: examples-special ts-pass - $(CC) $(CFLAGS) -DWITH_LIBSSH2=1 -I/usr/local/include -L/usr/local/lib -o ts-warp -lssh2 $(WARP_FILES) + $(CC) $(CFLAGS) -DWITH_LIBSSH2=1 -I/usr/local/include -L/usr/local/lib -o ts-warp $(WARP_FILES) -lssh2 ts-warp.sh: sed 's|tswarp_prefix=.*|tswarp_prefix="$(PREFIX)"|' ts-warp.sh.in > ts-warp.sh diff --git a/ts-warp.c b/ts-warp.c index 0b82b9d..046a9ef 100644 --- a/ts-warp.c +++ b/ts-warp.c @@ -162,7 +162,7 @@ All parameters are optional: char buf[BUF_SIZE]; /* Multipurpose buffer */ char suf[STR_SIZE]; /* String buffer */ int ret; /* Various function return codes */ - int rec, snd; /* received/sent bytes */ + int rec = 0, snd = 0; /* received/sent bytes */ pid_t cpid; /* Child PID */ key_t mskey; /* IPC ID */