8fc67d6e16
Get rid of a bunch of patch-files which can be easily replaced by a REINPLACE_CMD invocation. PR: ports/65975 Suggested by: Andrey Slusar Approved by: linimon (mentor)
20 lines
579 B
Text
20 lines
579 B
Text
--- socks4.c.orig Fri Aug 4 08:39:21 2000
|
|
+++ socks4.c Thu Apr 29 15:59:20 2004
|
|
@@ -28,6 +28,8 @@
|
|
|
|
#include "jcc.h"
|
|
|
|
+#define DEFAULT_FALLBACK_HTTP_PORT 80
|
|
+
|
|
#define SOCKS_REQUEST_GRANTED 90
|
|
#define SOCKS_REQUEST_REJECT 91
|
|
#define SOCKS_REQUEST_IDENT_FAILED 92
|
|
@@ -60,7 +62,7 @@
|
|
unsigned char sbuf[BUFSIZ];
|
|
struct socks_op *c = (struct socks_op *)cbuf;
|
|
struct socks_reply *s = (struct socks_reply *)sbuf;
|
|
- int web_server_addr;
|
|
+ int web_server_addr = DEFAULT_FALLBACK_HTTP_PORT;
|
|
int n, csiz, sfd, target_port;
|
|
int err = 0;
|
|
char *errstr, *target_host;
|