Skip to content

Commit

Permalink
ts-warp.c, Makefile: LIBSSH2 compilation issues under Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mezantrop committed Feb 26, 2024
1 parent d4fb045 commit 4e781ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ts-warp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4e781ce

Please sign in to comment.