Compare commits

...
Sign in to create a new pull request.

6 commits

Author SHA1 Message Date
Fedora Release Engineering
7f14f5bedd Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 02:25:48 +00:00
Fedora Release Engineering
1cf40dec3b Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 15:39:28 +00:00
Tim Semeijn
2b0216c6bb Update to 0.9.5 (fixes rhbz#2351065) 2025-03-21 15:30:16 +00:00
Fedora Release Engineering
eb51614382 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-20 07:16:49 +00:00
Fedora Release Engineering
5dc8ec0919 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 08:20:30 +00:00
Fedora Release Engineering
808de6655b Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 14:40:11 +00:00
5 changed files with 187 additions and 183 deletions

1
.gitignore vendored
View file

@ -6,3 +6,4 @@
/3proxy-0.8.12.tar.gz /3proxy-0.8.12.tar.gz
/3proxy-0.8.13.tar.gz /3proxy-0.8.13.tar.gz
/3proxy-0.9.4.tar.gz /3proxy-0.9.4.tar.gz
/3proxy-0.9.5.tar.gz

View file

@ -1,84 +1,72 @@
--- man/proxy.8 --- man/3proxy.8
+++ /dev/null +++ man/3proxy.8
@@ -1,78 +0,0 @@ @@ -26,7 +26,7 @@
-.TH proxy "8" "January 2019" "3proxy 0.9" "Universal proxy server" gateways with HTTP and HTTPS proxy with FTP over HTTP support, SOCKS v4,
-.SH NAME v4.5 and v5, POP3 proxy, UDP and TCP portmappers. Each gateway is started
from configuration file like independant service
-.BR proxy (8)
+.BR htproxy (8)
.BR socks (8)
.BR pop3p (8)
.BR tcppm (8)
@@ -140,7 +140,7 @@
Report all bugs to
.BR 3proxy@3proxy.org
.SH SEE ALSO
-3proxy.cfg(3), proxy(8), ftppr(8), socks(8), pop3p(8), tcppm(8), udppm(8),
+3proxy.cfg(3), ftppr(8), htproxy(8), socks(8), pop3p(8), tcppm(8), tlspr(8), udppm(8),
kill(1), syslogd(8),
.br
https://3proxy.org/
--- man/3proxy.cfg.3
+++ man/3proxy.cfg.3
@@ -46,7 +46,7 @@
Next commands start gateway services:
.br
-.B proxy -.B proxy
-\- HTTP proxy gateway service +.B htproxy
-.SH SYNOPSIS [options]
-.BR "proxy " [ -d ][ -a ] .br
-.IB \fR[ -l \fR[ \fR[ @ \fR] logfile \fR]] .B socks
-.IB \fR[ -p port\fR] @@ -74,7 +74,7 @@
-.IB \fR[ -i internal_ip\fR] .br
-.IB \fR[ -e external_ip\fR] Descriptions:
-.SH DESCRIPTION .br
-.B proxy -.B proxy
-is HTTP gateway service with HTTPS and FTP over HTTPS support. +.B htproxy
-.SH OPTIONS HTTP/HTTPS proxy (default port 3128)
-.TP .br
-.B -I .B socks
-Inetd mode. Standalone service only. @@ -185,7 +185,7 @@
-.TP of IP-IP NAT (will not work for PAT)
-.B -d .br
-Daemonise. Detach service from console and run in the background. Also, all options mentioned for
-.TP -.BR proxy (8)
-.B -t +.BR htproxy (8)
-Be silenT. Do not log start/stop/accept error records. .BR socks (8)
-.TP .BR pop3p (8)
-.B -u .BR tcppm (8)
-Never ask for username authentication @@ -1078,7 +1078,7 @@
-.TP Report all bugs to
-.B -e .BR 3proxy@3proxy.org
-External address. IP address of interface proxy should initiate connections .SH SEE ALSO
-from. -3proxy(8), proxy(8), ftppr(8), socks(8), pop3p(8), tcppm(8), udppm(8), syslogd(8),
-By default system will deside which address to use in accordance +3proxy(8), ftppr(8), htproxy(8), socks(8), pop3p(8), tcppm(8), tlspr(8), udppm(8), syslogd(8),
-with routing table. .br
-.TP https://3proxy.org/
-.B -i .SH TRIVIA
-Internal address. IP address proxy accepts connections to. --- man/ftppr.8
-By default connection to any interface is accepted. It\'s usually unsafe. +++ man/ftppr.8
-.TP @@ -79,7 +79,7 @@
-.B -a Report all bugs to
-Anonymous. Hide information about client. .BR 3proxy@3proxy.org
-.TP .SH SEE ALSO
-.B -a1 -3proxy(8), proxy(8), pop3p(8), socks(8), tcppm(8), udppm(8), syslogd(8),
-Anonymous. Show fake information about client. +3proxy(8), htproxy(8), pop3p(8), socks(8), tcppm(8), tlspr(8), udppm(8), syslogd(8),
-.TP .br
-.B -p https://3proxy.org/
-Port. Port proxy listens for incoming connections. Default is 3128. .SH AUTHORS
-.TP
-.B -l
-Log. By default logging is to stdout. If
-.I logfile
-is specified logging is to file. Under Unix, if
-.RI \' @ \'
-preceeds
-.IR logfile ,
-syslog is used for logging.
-.TP
-.B -S
-Increase or decrease stack size. You may want to try something like -S8192 if you experience 3proxy
-crashes.
-.SH CLIENTS
-You should use client with HTTP proxy support or configure router to redirect
-HTTP traffic to proxy (transparent proxy). Configure client to connect to
-.I internal_ip
-and
-.IR port .
-HTTPS support allows to use almost any TCP based protocol. If you need to
-limit clients, use
-.BR 3proxy (8)
-instead.
-.SH BUGS
-Report all bugs to
-.BR 3proxy@3proxy.ru
-.SH SEE ALSO
-3proxy(8), ftppr(8), socks(8), pop3p(8), tcppm(8), udppm(8), syslogd(8),
-.br
-https://3proxy.org/
-.SH AUTHORS
-3proxy is designed by Vladimir 3APA3A Dubrovin
-.RI ( 3proxy@3proxy.ru )
--- /dev/null --- /dev/null
+++ man/htproxy.8 +++ man/htproxy.8
@@ -0,0 +1,78 @@ @@ -0,0 +1,78 @@
@ -152,102 +140,114 @@
+instead. +instead.
+.SH BUGS +.SH BUGS
+Report all bugs to +Report all bugs to
+.BR 3proxy@3proxy.ru +.BR 3proxy@3proxy.org
+.SH SEE ALSO +.SH SEE ALSO
+3proxy(8), ftppr(8), socks(8), pop3p(8), tcppm(8), udppm(8), syslogd(8), +3proxy(8), ftppr(8), socks(8), pop3p(8), tcppm(8), tlspr(8), udppm(8), syslogd(8),
+.br +.br
+https://3proxy.org/ +https://3proxy.org/
+.SH AUTHORS +.SH AUTHORS
+3proxy is designed by Vladimir 3APA3A Dubrovin +3proxy is designed by Vladimir 3APA3A Dubrovin
+.RI ( 3proxy@3proxy.ru ) +.RI ( 3proxy@3proxy.org )
--- man/3proxy.8
+++ man/3proxy.8
@@ -26,7 +26,7 @@
gateways with HTTP and HTTPS proxy with FTP over HTTP support, SOCKS v4,
v4.5 and v5, POP3 proxy, UDP and TCP portmappers. Each gateway is started
from configuration file like independant service
-.BR proxy (8)
+.BR htproxy (8)
.BR socks (8)
.BR pop3p (8)
.BR tcppm (8)
@@ -140,7 +140,7 @@
Report all bugs to
.BR 3proxy@3proxy.ru
.SH SEE ALSO
-3proxy.cfg(3), proxy(8), ftppr(8), socks(8), pop3p(8), tcppm(8), udppm(8),
+3proxy.cfg(3), ftppr(8), htproxy(8), socks(8), pop3p(8), tcppm(8), udppm(8),
kill(1), syslogd(8),
.br
https://3proxy.org/
--- man/3proxy.cfg.3
+++ man/3proxy.cfg.3
@@ -46,7 +46,7 @@
Next commands start gateway services:
.br
-.B proxy
+.B htproxy
[options]
.br
.B socks
@@ -74,7 +74,7 @@
.br
Descriptions:
.br
-.B proxy
+.B htproxy
HTTP/HTTPS proxy (default port 3128)
.br
.B socks
@@ -174,7 +174,7 @@
of IP-IP NAT (will not work for PAT)
.br
Also, all options mentioned for
-.BR proxy (8)
+.BR htproxy (8)
.BR socks (8)
.BR pop3p (8)
.BR tcppm (8)
@@ -1057,7 +1057,7 @@
Report all bugs to
.BR 3proxy@3proxy.ru
.SH SEE ALSO
-3proxy(8), proxy(8), ftppr(8), socks(8), pop3p(8), tcppm(8), udppm(8), syslogd(8),
+3proxy(8), ftppr(8), htproxy(8), socks(8), pop3p(8), tcppm(8), udppm(8), syslogd(8),
.br
https://3proxy.org/
.SH TRIVIA
--- man/ftppr.8
+++ man/ftppr.8
@@ -79,7 +79,7 @@
Report all bugs to
.BR 3proxy@3proxy.ru
.SH SEE ALSO
-3proxy(8), proxy(8), pop3p(8), socks(8), tcppm(8), udppm(8), syslogd(8),
+3proxy(8), htproxy(8), pop3p(8), socks(8), tcppm(8), udppm(8), syslogd(8),
.br
https://3proxy.org/
.SH AUTHORS
--- man/pop3p.8 --- man/pop3p.8
+++ man/pop3p.8 +++ man/pop3p.8
@@ -75,7 +75,7 @@ @@ -75,7 +75,7 @@
Report all bugs to Report all bugs to
.BR 3proxy@3proxy.ru .BR 3proxy@3proxy.org
.SH SEE ALSO .SH SEE ALSO
-3proxy(8), ftppr(8), proxy(8), socks(8), tcppm(8), udppm(8), syslogd(8), -3proxy(8), ftppr(8), proxy(8), socks(8), tcppm(8), udppm(8), syslogd(8),
+3proxy(8), ftppr(8), htproxy(8), socks(8), tcppm(8), udppm(8), syslogd(8), +3proxy(8), ftppr(8), htproxy(8), socks(8), tcppm(8), tlspr(8), udppm(8), syslogd(8),
.br .br
https://3proxy.org/ https://3proxy.org/
.SH AUTHORS .SH AUTHORS
--- man/proxy.8
+++ /dev/null
@@ -1,78 +0,0 @@
-.TH proxy "8" "January 2019" "3proxy 0.9" "Universal proxy server"
-.SH NAME
-.B proxy
-\- HTTP proxy gateway service
-.SH SYNOPSIS
-.BR "proxy " [ -d ][ -a ]
-.IB \fR[ -l \fR[ \fR[ @ \fR] logfile \fR]]
-.IB \fR[ -p port\fR]
-.IB \fR[ -i internal_ip\fR]
-.IB \fR[ -e external_ip\fR]
-.SH DESCRIPTION
-.B proxy
-is HTTP gateway service with HTTPS and FTP over HTTPS support.
-.SH OPTIONS
-.TP
-.B -I
-Inetd mode. Standalone service only.
-.TP
-.B -d
-Daemonise. Detach service from console and run in the background.
-.TP
-.B -t
-Be silenT. Do not log start/stop/accept error records.
-.TP
-.B -u
-Never ask for username authentication
-.TP
-.B -e
-External address. IP address of interface proxy should initiate connections
-from.
-By default system will deside which address to use in accordance
-with routing table.
-.TP
-.B -i
-Internal address. IP address proxy accepts connections to.
-By default connection to any interface is accepted. It\'s usually unsafe.
-.TP
-.B -a
-Anonymous. Hide information about client.
-.TP
-.B -a1
-Anonymous. Show fake information about client.
-.TP
-.B -p
-Port. Port proxy listens for incoming connections. Default is 3128.
-.TP
-.B -l
-Log. By default logging is to stdout. If
-.I logfile
-is specified logging is to file. Under Unix, if
-.RI \' @ \'
-preceeds
-.IR logfile ,
-syslog is used for logging.
-.TP
-.B -S
-Increase or decrease stack size. You may want to try something like -S8192 if you experience 3proxy
-crashes.
-.SH CLIENTS
-You should use client with HTTP proxy support or configure router to redirect
-HTTP traffic to proxy (transparent proxy). Configure client to connect to
-.I internal_ip
-and
-.IR port .
-HTTPS support allows to use almost any TCP based protocol. If you need to
-limit clients, use
-.BR 3proxy (8)
-instead.
-.SH BUGS
-Report all bugs to
-.BR 3proxy@3proxy.org
-.SH SEE ALSO
-3proxy(8), ftppr(8), socks(8), pop3p(8), tcppm(8), udppm(8), syslogd(8),
-.br
-https://3proxy.org/
-.SH AUTHORS
-3proxy is designed by Vladimir 3APA3A Dubrovin
-.RI ( 3proxy@3proxy.org )
--- man/smtpp.8 --- man/smtpp.8
+++ man/smtpp.8 +++ man/smtpp.8
@@ -76,7 +76,7 @@ @@ -76,7 +76,7 @@
Report all bugs to Report all bugs to
.BR 3proxy@3proxy.ru .BR 3proxy@3proxy.org
.SH SEE ALSO .SH SEE ALSO
-3proxy(8), ftppr(8), proxy(8), socks(8), tcppm(8), udppm(8), syslogd(8), -3proxy(8), ftppr(8), proxy(8), socks(8), tcppm(8), udppm(8), syslogd(8),
+3proxy(8), ftppr(8), htproxy(8), socks(8), tcppm(8), udppm(8), syslogd(8), +3proxy(8), ftppr(8), htproxy(8), socks(8), tcppm(8), tlspr(8), udppm(8), syslogd(8),
.br .br
https://3proxy.org/ https://3proxy.org/
.SH AUTHORS .SH AUTHORS
@ -255,10 +255,10 @@
+++ man/socks.8 +++ man/socks.8
@@ -76,7 +76,7 @@ @@ -76,7 +76,7 @@
Report all bugs to Report all bugs to
.BR 3proxy@3proxy.ru .BR 3proxy@3proxy.org
.SH SEE ALSO .SH SEE ALSO
-3proxy(8), proxy(8), ftppr(8), pop3p(8), tcppm(8), udppm(8), syslogd(8), -3proxy(8), proxy(8), ftppr(8), pop3p(8), tcppm(8), udppm(8), syslogd(8),
+3proxy(8), ftppr(8), htproxy(8), pop3p(8), tcppm(8), udppm(8), syslogd(8), +3proxy(8), ftppr(8), htproxy(8), pop3p(8), tcppm(8), tlspr(8), udppm(8), syslogd(8),
.br .br
https://3proxy.org/ https://3proxy.org/
.SH AUTHORS .SH AUTHORS
@ -266,10 +266,21 @@
+++ man/tcppm.8 +++ man/tcppm.8
@@ -65,7 +65,7 @@ @@ -65,7 +65,7 @@
Report all bugs to Report all bugs to
.BR 3proxy@3proxy.ru .BR 3proxy@3proxy.org
.SH SEE ALSO .SH SEE ALSO
-3proxy(8), proxy(8), ftppr(8), socks(8), pop3p(8), udppm(8), syslogd(8), -3proxy(8), proxy(8), ftppr(8), socks(8), pop3p(8), udppm(8), syslogd(8),
+3proxy(8), ftppr(8), htproxy(8), socks(8), pop3p(8), udppm(8), syslogd(8), +3proxy(8), ftppr(8), htproxy(8), socks(8), pop3p(8), tlspr(8), udppm(8), syslogd(8),
.br
https://3proxy.org/
.SH AUTHORS
--- man/tlspr.8
+++ man/tlspr.8
@@ -78,7 +78,7 @@
Report all bugs to
.BR 3proxy@3proxy.org
.SH SEE ALSO
-3proxy(8), ftppr(8), proxy(8), socks(8), pop3p(8), smtpp(8), tcppm(8), udppm(8), syslogd(8),
+3proxy(8), ftppr(8), htproxy(8), socks(8), pop3p(8), smtpp(8), tcppm(8), udppm(8), syslogd(8),
.br .br
https://3proxy.org/ https://3proxy.org/
.SH AUTHORS .SH AUTHORS
@ -277,10 +288,10 @@
+++ man/udppm.8 +++ man/udppm.8
@@ -71,7 +71,7 @@ @@ -71,7 +71,7 @@
Report all bugs to Report all bugs to
.BR 3proxy@3proxy.ru .BR 3proxy@3proxy.org
.SH SEE ALSO .SH SEE ALSO
-3proxy(8), proxy(8), ftppr(8), socks(8), pop3p(8), udppm(8), syslogd(8), -3proxy(8), proxy(8), ftppr(8), socks(8), pop3p(8), udppm(8), syslogd(8),
+3proxy(8), ftppr(8), htproxy(8), socks(8), pop3p(8), udppm(8), syslogd(8), +3proxy(8), ftppr(8), htproxy(8), socks(8), pop3p(8), tlspr(8), udppm(8), syslogd(8),
.br .br
https://3proxy.org/ https://3proxy.org/
.SH AUTHORS .SH AUTHORS

View file

@ -1,6 +1,6 @@
--- src/common.c --- src/common.c
+++ src/common.c +++ src/common.c
@@ -156,7 +156,7 @@ @@ -157,7 +157,7 @@
WINAPI WINAPI
#endif #endif
@ -11,7 +11,7 @@
fd_set oobfd; fd_set oobfd;
--- src/structures.h --- src/structures.h
+++ src/structures.h +++ src/structures.h
@@ -66,6 +66,7 @@ @@ -69,6 +69,7 @@
#ifdef WITH_POLL #ifdef WITH_POLL
#include <poll.h> #include <poll.h>
#else #else
@ -19,7 +19,7 @@
#ifdef WITH_WSAPOLL #ifdef WITH_WSAPOLL
#define poll(A,B,C) WSAPoll(A,B,C) #define poll(A,B,C) WSAPoll(A,B,C)
@@ -81,7 +82,7 @@ @@ -84,7 +85,7 @@
#ifdef _WIN32 #ifdef _WIN32
WINAPI WINAPI
#endif #endif
@ -28,21 +28,12 @@
#ifndef POLLIN #ifndef POLLIN
#define POLLIN 1 #define POLLIN 1
#endif #endif
@@ -694,7 +695,7 @@ @@ -434,7 +435,7 @@
int (WINAPI *_getsockname)(SOCKET s, struct sockaddr * name, int * namelen); int (WINAPI *_getsockname)(void* state, SOCKET s, struct sockaddr * name, int * namelen);
int (WINAPI *_getsockopt)(SOCKET s, int level, int optname, char * optval, int * optlen); int (WINAPI *_getsockopt)(void* state, SOCKET s, int level, int optname, char * optval, int * optlen);
int (WINAPI *_setsockopt)(SOCKET s, int level, int optname, const char *optval, int optlen); int (WINAPI *_setsockopt)(void* state, SOCKET s, int level, int optname, const char *optval, int optlen);
- int (WINAPI *_poll)(struct pollfd *fds, unsigned int nfds, int timeout); - int (WINAPI *_poll)(void* state, struct pollfd *fds, unsigned int nfds, int timeout);
+ int (WINAPI *_poll)(struct pollfd *fds, nfds_t nfds, int timeout); + int (WINAPI *_poll)(struct pollfd *fds, nfds_t nfds, int timeout);
int (WINAPI *_send)(SOCKET s, const char *msg, int len, int flags); int (WINAPI *_send)(void* state, SOCKET s, const char *msg, int len, int flags);
int (WINAPI *_sendto)(SOCKET s, const char *msg, int len, int flags, const struct sockaddr *to, int tolen); int (WINAPI *_sendto)(void* state, SOCKET s, const char *msg, int len, int flags, const struct sockaddr *to, int tolen);
int (WINAPI *_recv)(SOCKET s, char *buf, int len, int flags); int (WINAPI *_recv)(void* state, SOCKET s, char *buf, int len, int flags);
@@ -711,7 +712,7 @@
int (*_getsockname)(SOCKET s, struct sockaddr * name, socklen_t * namelen);
int (*_getsockopt)(SOCKET s, int level, int optname, void * optval, socklen_t * optlen);
int (*_setsockopt)(int s, int level, int optname, const void *optval, socklen_t optlen);
- int (*_poll)(struct pollfd *fds, unsigned int nfds, int timeout);
+ int (*_poll)(struct pollfd *fds, nfds_t nfds, int timeout);
size_t (*_send)(SOCKET s, const void *msg, size_t len, int flags);
size_t (*_sendto)(SOCKET s, const void *msg, size_t len, int flags, const struct sockaddr *to, SASIZETYPE tolen);
size_t (*_recv)(SOCKET s, void *buf, size_t len, int flags);

View file

@ -1,7 +1,7 @@
%global _hardened_build 1 %global _hardened_build 1
Name: 3proxy Name: 3proxy
Version: 0.9.4 Version: 0.9.5
Release: %autorelease Release: %autorelease
Summary: Tiny but very powerful proxy Summary: Tiny but very powerful proxy
@ -63,6 +63,7 @@ install -m755 -D bin/proxy %{buildroot}%{_bindir}/htproxy
install -m755 -D bin/smtpp %{buildroot}%{_bindir}/smtpp install -m755 -D bin/smtpp %{buildroot}%{_bindir}/smtpp
install -m755 -D bin/socks %{buildroot}%{_bindir}/socks install -m755 -D bin/socks %{buildroot}%{_bindir}/socks
install -m755 -D bin/tcppm %{buildroot}%{_bindir}/tcppm install -m755 -D bin/tcppm %{buildroot}%{_bindir}/tcppm
install -m755 -D bin/tlspr %{buildroot}%{_bindir}/tlspr
install -m755 -D bin/udppm %{buildroot}%{_bindir}/udppm install -m755 -D bin/udppm %{buildroot}%{_bindir}/udppm
install -pD -m644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/%{name}.cfg install -pD -m644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/%{name}.cfg

View file

@ -1 +1 @@
SHA512 (3proxy-0.9.4.tar.gz) = d3316f6ee1217e580ce593a7bfd9d76672487a89862f247373b0acf3ea207887c758168e33b25db9fc974063deab0826c20d455cab2536d03eee49d8bddda6b5 SHA512 (3proxy-0.9.5.tar.gz) = b668db6438da19ee2479228af744b9b3b9ff2c7e6d97aaf3b20737b165ab2baf656ac9ea92b6f1e169c428784c7d9e3e7eeb7c3effb1c0b77e5038319b6d2bcd