mirror of
https://github.com/3proxy/3proxy.git
synced 2026-06-13 11:00:11 +08:00
Compare commits
3 Commits
e6c3427cab
...
e9848b6622
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e9848b6622 | ||
|
|
e419a21cf9 | ||
|
|
6b61cfde4c |
2
.github/workflows/build-watcom.yml
vendored
2
.github/workflows/build-watcom.yml
vendored
@ -2,7 +2,7 @@ name: Build Win32 3proxy-lite with Watcom
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ "master", "test-ci" ]
|
||||||
paths: [ 'RELEASE', '.github/workflows/build-watcom.yml' ]
|
paths: [ 'RELEASE', '.github/workflows/build-watcom.yml' ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
2
.github/workflows/build-win32.yml
vendored
2
.github/workflows/build-win32.yml
vendored
@ -2,7 +2,7 @@ name: Build Win32 3proxy with MSVC
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ "master", "test-ci" ]
|
||||||
paths: [ 'RELEASE', '.github/workflows/build-win32.yml' ]
|
paths: [ 'RELEASE', '.github/workflows/build-win32.yml' ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
2
.github/workflows/build-win64.yml
vendored
2
.github/workflows/build-win64.yml
vendored
@ -2,7 +2,7 @@ name: Build Win64 3proxy with MSVC
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ "master", "test-ci" ]
|
||||||
paths: [ 'RELEASE', '.github/workflows/build-win64.yml' ]
|
paths: [ 'RELEASE', '.github/workflows/build-win64.yml' ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
2
.github/workflows/build-winarm64.yml
vendored
2
.github/workflows/build-winarm64.yml
vendored
@ -2,7 +2,7 @@ name: Build Win-arm64 3proxy with MSVC
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ "master", "test-ci" ]
|
||||||
paths: [ 'RELEASE', '.github/workflows/build-winarm64.yml' ]
|
paths: [ 'RELEASE', '.github/workflows/build-winarm64.yml' ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
3proxy (0.9.6.1-1) buster; urgency=medium
|
||||||
|
|
||||||
|
*3proxy 0.9.6.1 initial build
|
||||||
|
|
||||||
|
-- z3APA3A <3apa3a@3proxy.org> Fri, 24 Apr 2026 17:23:05 +0300
|
||||||
|
|
||||||
3proxy (0.9.6-1) buster; urgency=medium
|
3proxy (0.9.6-1) buster; urgency=medium
|
||||||
|
|
||||||
*3proxy 0.9.6 initial build
|
*3proxy 0.9.6 initial build
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
Name: 3proxy
|
Name: 3proxy
|
||||||
Version: 0.9.6
|
Version: 0.9.6.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: 3proxy tiny proxy server
|
Summary: 3proxy tiny proxy server
|
||||||
License: GPL/LGPL/Apache/BSD
|
License: GPL/LGPL/Apache/BSD
|
||||||
|
|||||||
@ -823,7 +823,7 @@ int doauth(struct clientparam * param){
|
|||||||
(res = (*authfuncs->authorize)(param)))
|
(res = (*authfuncs->authorize)(param)))
|
||||||
return res;
|
return res;
|
||||||
if(conf.authcachetype && authfuncs->authenticate && authfuncs->authenticate != cacheauth && param->username && (!(conf.authcachetype&4) || (!param->pwtype && param->password))){
|
if(conf.authcachetype && authfuncs->authenticate && authfuncs->authenticate != cacheauth && param->username && (!(conf.authcachetype&4) || (!param->pwtype && param->password))){
|
||||||
struct authcache ac={};
|
struct authcache ac={.username=""};
|
||||||
|
|
||||||
if(param->username) strncpy((char *)ac.username, (char *)param->username, 64);
|
if(param->username) strncpy((char *)ac.username, (char *)param->username, 64);
|
||||||
if(*SAFAMILY(¶m->sincr) == AF_INET
|
if(*SAFAMILY(¶m->sincr) == AF_INET
|
||||||
|
|||||||
@ -153,6 +153,7 @@ int start_proxy_thread(struct child * chp){
|
|||||||
pthread_t thread;
|
pthread_t thread;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
HANDLE h;
|
HANDLE h;
|
||||||
|
DWORD num;
|
||||||
#endif
|
#endif
|
||||||
char r[1];
|
char r[1];
|
||||||
|
|
||||||
@ -171,7 +172,7 @@ int start_proxy_thread(struct child * chp){
|
|||||||
pthread_attr_destroy(&pa);
|
pthread_attr_destroy(&pa);
|
||||||
#endif
|
#endif
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
ReadFile(conf.threadinit[0], r, 1, NULL, NULL);
|
ReadFile(conf.threadinit[0], r, 1, &num, NULL);
|
||||||
#else
|
#else
|
||||||
while(read(conf.threadinit[0], r, 1) !=1) if(errno != EINTR) {
|
while(read(conf.threadinit[0], r, 1) !=1) if(errno != EINTR) {
|
||||||
fprintf(stderr, "pipe failed\n");
|
fprintf(stderr, "pipe failed\n");
|
||||||
|
|||||||
@ -18,7 +18,9 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(WATCOM)
|
||||||
|
#define BLAKE2_PACKED(x) _Packed x
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
#define BLAKE2_PACKED(x) __pragma(pack(push, 1)) x __pragma(pack(pop))
|
#define BLAKE2_PACKED(x) __pragma(pack(push, 1)) x __pragma(pack(pop))
|
||||||
#else
|
#else
|
||||||
#define BLAKE2_PACKED(x) x __attribute__((packed))
|
#define BLAKE2_PACKED(x) x __attribute__((packed))
|
||||||
|
|||||||
@ -279,7 +279,7 @@ SSL_CONN ssl_handshake_to_server(SOCKET s, char * hostname, SSL_CONFIG *config,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
do {
|
do {
|
||||||
struct pollfd fds[1] = {{}};
|
struct pollfd fds[1] = {{INVALID_SOCKET}};
|
||||||
int sslerr;
|
int sslerr;
|
||||||
|
|
||||||
err = SSL_connect(conn->ssl);
|
err = SSL_connect(conn->ssl);
|
||||||
@ -350,7 +350,7 @@ SSL_CONN ssl_handshake_to_client(SOCKET s, SSL_CONFIG *config, X509 *server_cert
|
|||||||
SSL_set_fd(conn->ssl, s);
|
SSL_set_fd(conn->ssl, s);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
struct pollfd fds[1] = {{}};
|
struct pollfd fds[1] = {{INVALID_SOCKET}};
|
||||||
int sslerr;
|
int sslerr;
|
||||||
|
|
||||||
err = SSL_accept(conn->ssl);
|
err = SSL_accept(conn->ssl);
|
||||||
|
|||||||
@ -116,11 +116,11 @@ void * threadfunc (void *p) {
|
|||||||
#undef param
|
#undef param
|
||||||
|
|
||||||
int pushthreadinit(){
|
int pushthreadinit(){
|
||||||
return
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
WriteFile(conf.threadinit[1], "1", 1, NULL, NULL);
|
DWORD n;
|
||||||
|
return WriteFile(conf.threadinit[1], "1", 1, &n, NULL);
|
||||||
#else
|
#else
|
||||||
write(conf.threadinit[1], "1", 1);
|
return write(conf.threadinit[1], "1", 1);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#ifndef VERSION
|
#ifndef VERSION
|
||||||
#define VERSION "3proxy-0.9.6"
|
#define VERSION "3proxy-0.9.6.1"
|
||||||
#endif
|
#endif
|
||||||
#ifndef BUILDDATE
|
#ifndef BUILDDATE
|
||||||
#define BUILDDATE ""
|
#define BUILDDATE ""
|
||||||
@ -7,8 +7,8 @@
|
|||||||
#define MAJOR3PROXY 0
|
#define MAJOR3PROXY 0
|
||||||
#define SUBMAJOR3PROXY 9
|
#define SUBMAJOR3PROXY 9
|
||||||
#define MINOR3PROXY 6
|
#define MINOR3PROXY 6
|
||||||
#define SUBMINOR3PROXY 0
|
#define SUBMINOR3PROXY 1
|
||||||
#define RELEASE3PROXY "3proxy-0.9.6(" BUILDDATE ")\0"
|
#define RELEASE3PROXY "3proxy-0.9.6.1(" BUILDDATE ")\0"
|
||||||
#ifndef YEAR3PROXY
|
#ifndef YEAR3PROXY
|
||||||
#define YEAR3PROXY "2026"
|
#define YEAR3PROXY "2026"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user