mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-26 23:59:41 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e85b064b52 | ||
|
|
9f6c0b5b8d | ||
|
|
3b67dc8447 |
No files matched your search
@@ -1,9 +1,6 @@
|
||||
#include "src/version.h"
|
||||
|
||||
|
||||
1 VERSIONINFO
|
||||
FILEVERSION 0,8,12,0
|
||||
PRODUCTVERSION 0,8,12,0
|
||||
FILEVERSION 0,8,13,0
|
||||
PRODUCTVERSION 0,8,13,0
|
||||
FILETYPE 1
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
@@ -14,12 +11,12 @@ BEGIN
|
||||
VALUE "Comments", "3proxy - tiny proxy server, http://3proxy.ru/\0"
|
||||
VALUE "CompanyName", "Vladimir Dubrovin\0"
|
||||
VALUE "FileDescription", "3proxy - tiny proxy server\0"
|
||||
VALUE "FileVersion", "0.8.12\0"
|
||||
VALUE "FileVersion", "0.8.13\0"
|
||||
VALUE "InternalName", "3proxy\0"
|
||||
VALUE "LegalCopyright", "Copyright (C) 2002-2018 Vladimir Dubrovin\0"
|
||||
VALUE "LegalCopyright", "Copyright (C) 2002-2019 Vladimir Dubrovin\0"
|
||||
VALUE "OriginalFilename", "3proxy.exe\0"
|
||||
VALUE "ProductName", "3proxy\0"
|
||||
VALUE "ProductVersion", "0.8.12\0"
|
||||
VALUE "ProductVersion", "0.8.13\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
|
||||
+19
-18
@@ -1,18 +1,19 @@
|
||||
<html><title>3proxy documentation</title><body><h2>3proxy documentation</h2>
|
||||
<a href="securityen.html">Security recommendations</a><br>
|
||||
<a href="howtoe.html">How To (English, very incomplete)</a><br>
|
||||
<a href="howtor.html">How To (Russian)</a><br>
|
||||
<a href="faqe.html">FAQ (English)</a><br>
|
||||
<a href="faqr.html">FAQ (Russian)</a>
|
||||
<h3>Man pages:</h>
|
||||
<br><A HREF="man8/3proxy.8.html">3proxy.8</A>
|
||||
<br><A HREF="man8/ftppr.8.html">ftppr.8</A>
|
||||
<br><A HREF="man8/icqpr.8.html">icqpr.8</A>
|
||||
<br><A HREF="man8/pop3p.8.html">pop3p.8</A>
|
||||
<br><A HREF="man8/proxy.8.html">proxy.8</A>
|
||||
<br><A HREF="man8/smtpp.8.html">smtpp.8</A>
|
||||
<br><A HREF="man8/socks.8.html">socks.8</A>
|
||||
<br><A HREF="man8/tcppm.8.html">tcppm.8</A>
|
||||
<br><A HREF="man8/udppm.8.html">udppm.8</A>
|
||||
<br><A HREF="man3/3proxy.cfg.3.html">3proxy.cfg.3</A>
|
||||
</body></html>
|
||||
<html><title>3proxy documentation</title><body><h2>3proxy documentation</h2>
|
||||
<a href="securityen.html">Security recommendations</a><br>
|
||||
<a href="highload.html">Optimizing 3proxy for high loads</a><br>
|
||||
<a href="howtoe.html">How To (English, very incomplete)</a><br>
|
||||
<a href="howtor.html">How To (Russian)</a><br>
|
||||
<a href="faqe.html">FAQ (English)</a><br>
|
||||
<a href="faqr.html">FAQ (Russian)</a>
|
||||
<h3>Man pages:</h>
|
||||
<br><A HREF="man8/3proxy.8.html">3proxy.8</A>
|
||||
<br><A HREF="man8/ftppr.8.html">ftppr.8</A>
|
||||
<br><A HREF="man8/icqpr.8.html">icqpr.8</A>
|
||||
<br><A HREF="man8/pop3p.8.html">pop3p.8</A>
|
||||
<br><A HREF="man8/proxy.8.html">proxy.8</A>
|
||||
<br><A HREF="man8/smtpp.8.html">smtpp.8</A>
|
||||
<br><A HREF="man8/socks.8.html">socks.8</A>
|
||||
<br><A HREF="man8/tcppm.8.html">tcppm.8</A>
|
||||
<br><A HREF="man8/udppm.8.html">udppm.8</A>
|
||||
<br><A HREF="man3/3proxy.cfg.3.html">3proxy.cfg.3</A>
|
||||
</body></html>
|
||||
+8
-4
@@ -1425,7 +1425,6 @@ int parsestr (unsigned char *str, unsigned char **argm, int nitems, unsigned cha
|
||||
unsigned char * incbegin = 0;
|
||||
int fd;
|
||||
int res, len;
|
||||
int i = 1;
|
||||
unsigned char *str1;
|
||||
|
||||
for(;;str++){
|
||||
@@ -1444,7 +1443,14 @@ int parsestr (unsigned char *str, unsigned char **argm, int nitems, unsigned cha
|
||||
argm[argc] = 0;
|
||||
return argc;
|
||||
case '$':
|
||||
if(!comment && !included){
|
||||
if(comment){
|
||||
if(space){
|
||||
argm[argc++] = str;
|
||||
if(argc >= nitems) return argc;
|
||||
space = 0;
|
||||
}
|
||||
}
|
||||
else if(!included){
|
||||
incbegin = str;
|
||||
*str = 0;
|
||||
}
|
||||
@@ -1456,7 +1462,6 @@ int parsestr (unsigned char *str, unsigned char **argm, int nitems, unsigned cha
|
||||
if(!comment){
|
||||
*str = 0;
|
||||
space = 1;
|
||||
i = 0;
|
||||
if(incbegin){
|
||||
argc--;
|
||||
if((fd = open((char *)incbegin+1, O_RDONLY)) <= 0){
|
||||
@@ -1494,7 +1499,6 @@ int parsestr (unsigned char *str, unsigned char **argm, int nitems, unsigned cha
|
||||
break;
|
||||
}
|
||||
default:
|
||||
i++;
|
||||
if(space) {
|
||||
if(comment && *str == '\"' && str[1] != '\"'){
|
||||
str++;
|
||||
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
#define VERSION "3proxy-0.8.12"
|
||||
#define BUILDDATE "180418205022"
|
||||
#define VERSION "3proxy-0.8.13"
|
||||
#define BUILDDATE "190801174904"
|
||||
+10
-10
@@ -10,7 +10,7 @@
|
||||
|
||||
#define RETURN(xxx) { param->res = xxx; goto CLEANRET; }
|
||||
|
||||
#define LINESIZE 2048
|
||||
#define LINESIZE 65536
|
||||
|
||||
extern FILE *writable;
|
||||
FILE * confopen();
|
||||
@@ -341,7 +341,7 @@ void * adminchild(struct clientparam* param) {
|
||||
char *sb;
|
||||
char *req = NULL;
|
||||
struct printparam pp;
|
||||
int contentlen = 0;
|
||||
unsigned contentlen = 0;
|
||||
int isform = 0;
|
||||
|
||||
pp.inbuf = 0;
|
||||
@@ -390,7 +390,8 @@ void * adminchild(struct clientparam* param) {
|
||||
else if(i > 15 && (!strncasecmp(buf, "content-length:", 15))){
|
||||
sb = buf + 15;
|
||||
while(isspace(*sb))sb++;
|
||||
contentlen = atoi(sb);
|
||||
sscanf(sb, "%u", &contentlen);
|
||||
if(contentlen > LINESIZE*1024) contentlen = 0;
|
||||
}
|
||||
else if(i > 13 && (!strncasecmp(buf, "content-type:", 13))){
|
||||
sb = buf + 13;
|
||||
@@ -520,7 +521,7 @@ void * adminchild(struct clientparam* param) {
|
||||
break;
|
||||
}
|
||||
printstr(&pp, "<h3>Please be careful editing config file remotely</h3>");
|
||||
printstr(&pp, "<form method=\"POST\" action=\"/U\"><textarea cols=\"80\" rows=\"30\" name=\"conffile\">");
|
||||
printstr(&pp, "<form method=\"POST\" action=\"/U\" enctype=\"application/x-www-form-urlencoded\"><textarea cols=\"80\" rows=\"30\" name=\"conffile\">");
|
||||
while(fgets(buf, 256, fp)){
|
||||
printstr(&pp, buf);
|
||||
}
|
||||
@@ -530,24 +531,23 @@ void * adminchild(struct clientparam* param) {
|
||||
}
|
||||
case 'U':
|
||||
{
|
||||
int l=0;
|
||||
unsigned l=0;
|
||||
int error = 0;
|
||||
|
||||
if(!writable || fseek(writable, 0, 0)){
|
||||
if(!writable || !contentlen || fseek(writable, 0, 0)){
|
||||
error = 1;
|
||||
}
|
||||
while((i = sockgetlinebuf(param, CLIENT, (unsigned char *)buf, LINESIZE - 1, '+', conf.timeouts[STRING_S])) > 0){
|
||||
while(l < contentlen && (i = sockgetlinebuf(param, CLIENT, (unsigned char *)buf, (contentlen - l) > LINESIZE - 1?LINESIZE - 1:contentlen - l, '+', conf.timeouts[STRING_S])) > 0){
|
||||
if(i > (contentlen - l)) i = (contentlen - l);
|
||||
buf[i] = 0;
|
||||
if(!l){
|
||||
if(strncasecmp(buf, "conffile=", 9)) error = 1;
|
||||
if(i<9 || strncasecmp(buf, "conffile=", 9)) error = 1;
|
||||
}
|
||||
if(!error){
|
||||
buf[i] = 0;
|
||||
decodeurl((unsigned char *)buf, 1);
|
||||
fprintf(writable, "%s", l? buf : buf + 9);
|
||||
}
|
||||
l += i;
|
||||
if(l >= contentlen) break;
|
||||
}
|
||||
if(writable && !error){
|
||||
fflush(writable);
|
||||
|
||||
Reference in new issue
Block a user