Compare commits

..

16 Commits

Author SHA1 Message Date
Vladimir Dubrovin
6bbf528a20 Update c-cpp.yml
Some checks are pending
C/C++ CI / ${{ matrix.target }} (macos-15) (push) Waiting to run
C/C++ CI / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Waiting to run
C/C++ CI / ${{ matrix.target }} (ubuntu-latest) (push) Waiting to run
C/C++ CI / ${{ matrix.target }} (windows-2022) (push) Waiting to run
2026-03-30 21:01:25 +03:00
Vladimir Dubrovin
cc2a6ecc4a Update c-cpp.yml 2026-03-30 20:58:33 +03:00
Vladimir Dubrovin
772da8837a Update c-cpp.yml 2026-03-30 20:54:22 +03:00
Vladimir Dubrovin
d790e11ac6 Update c-cpp.yml 2026-03-30 20:40:31 +03:00
Vladimir Dubrovin
74cdf66786 Update c-cpp.yml 2026-03-30 20:37:13 +03:00
Vladimir Dubrovin
cbbe4d999e Update c-cpp.yml 2026-03-30 20:32:25 +03:00
Vladimir Dubrovin
ac1a667a50 Update c-cpp.yml 2026-03-30 20:24:00 +03:00
Vladimir Dubrovin
83229aa69e Update c-cpp.yml 2026-03-30 20:19:39 +03:00
Vladimir Dubrovin
71f35a78ec Update c-cpp.yml 2026-03-30 20:10:34 +03:00
Vladimir Dubrovin
2df68ddb33 Update c-cpp.yml 2026-03-30 19:54:48 +03:00
Vladimir Dubrovin
81f573ddec Update c-cpp.yml 2026-03-30 19:50:18 +03:00
Vladimir Dubrovin
584f75278b Update c-cpp.yml 2026-03-30 17:27:11 +03:00
Vladimir Dubrovin
4fa2c07dd1 Update Makefile.win 2026-03-30 17:24:33 +03:00
Vladimir Dubrovin
e058b56b27 Update Makefile.win 2026-03-30 17:10:39 +03:00
Vladimir Dubrovin
7f31a30f00 Fix TrafficPlugin 2026-03-30 15:18:18 +03:00
Vladimir Dubrovin
9ea553d44f Update c-cpp.yml 2026-03-30 15:09:46 +03:00
2 changed files with 40 additions and 30 deletions

View File

@ -23,41 +23,51 @@ jobs:
- uses: actions/checkout@v4
# - name: configure
# run: ./configure
- name: ln Linux
if: ${{ startsWith(matrix.target, 'ubuntu') }}
run: ln -s Makefile.Linux Makefile
- name: Linux libraries
if: ${{ startsWith(matrix.target, 'ubuntu') }}
run: sudo apt install libssl-dev libpam-dev libpcre3 libpcre3-dev
- name: Mac libraries
if: ${{ startsWith(matrix.target, 'macos') }}
run: brew install pcre
- name: ln Mac
if: ${{ startsWith(matrix.target, 'macos') }}
run: ln -s Makefile.FreeBSD Makefile
- name: ln Windows
if: ${{ startsWith(matrix.target, 'windows') }}
run: copy Makefile.win Makefile
- name: make Windows
if: ${{ startsWith(matrix.target, 'windows') }}
run: make
env:
LIBS: '-L "c:/program files/openssl/lib/VC/x64/MT"'
CFLAGS: '-I "c:/program files/openssl/include"'
- name: make Ubuntu
if: ${{ startsWith(matrix.target, 'ubuntu') }}
run: make
- name: make MacOS
if: ${{ startsWith(matrix.target, 'macos') }}
run: make
env:
LDFLAGS: "-L/usr/local/lib -L/opt/homebrew/lib -L/usr/local/opt/openssl/lib -L/opt/homebrew/opt/openssl/lib"
CFLAGS: "-I/usr/local/include -I/opt/homebrew/include -I/usr/local/opt/openssl/include -I/opt/homebrew/opt/openssl/include"
run: make -f Makefile.Linux
- name: mkdir
if: ${{ startsWith(matrix.target, 'ubuntu') }}
run: mkdir ~/3proxy
- name: make install
if: ${{ startsWith(matrix.target, 'ubuntu') }}
run: make DESTDIR=~/3proxy install
- name: make clean
run: make clean
run: make -f Makefile.Linux DESTDIR=~/3proxy install
- name: make clean Linux
if: ${{ startsWith(matrix.target, 'ubuntu') }}
run: make -f Makefile.Linux clean
- name: Mac libraries
if: ${{ startsWith(matrix.target, 'macos') }}
run: brew install pcre
- name: make MacOS
if: ${{ startsWith(matrix.target, 'macos') }}
run: make -f Makefile.FreeBSD
env:
LDFLAGS: "-L/usr/local/lib -L/opt/homebrew/lib -L/opt/homebrew/opt/openssl/lib"
CFLAGS: "-I/usr/local/include -I/opt/homebrew/include -I/usr/local/opt/openssl/include -I/opt/homebrew/opt/openssl/include"
- name: make clean MacOS
if: ${{ startsWith(matrix.target, 'macos') }}
run: make -f Makefile.FreeBSD clean
- name: make Windows
if: ${{ startsWith(matrix.target, 'windows') }}
run: make -f Makefile.win
env:
LIBS: '-L "c:/program files/openssl/lib/VC/x64/MT"'
CFLAGS: '-I "c:/program files/openssl/include"'
- name: make clean Windows
if: ${{ startsWith(matrix.target, 'windows') }}
run: make -f Makefile.win clean
# - name: make Windows MSVC
# if: ${{ startsWith(matrix.target, 'windows') }}
# shell: cmd
# run: |
# call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
# nmake /F Makefile.msvc64'
# env:
# LIBS: '-L "c:/program files/openssl/lib/VC/x64/MT"'
# CFLAGS: '-I "c:/program files/openssl/include"'
# - name: make clean Windows
# if: ${{ startsWith(matrix.target, 'windows') }}
# run: nmake /F Makefile.msvc64 clean

View File

@ -200,12 +200,12 @@ void mylogfunc(struct clientparam * param, const unsigned char * pz) {
#endif
rule++;
if (((g_s == param->service) && (port == myhtons(*SAPORT(&param->sinsr)))) ||
( ((starttrafcorrect->type == UDP) &&
( ((starttrafcorrect->con_type == UDP) &&
((param->operation == UDPASSOC)||
(param->operation == DNSRESOLVE)||
(param->operation == BIND)||
(param->operation == ICMPASSOC))
)||(starttrafcorrect->type == TCP))) /* TCP support */
)||(starttrafcorrect->con_type == TCP))) /* TCP support */
{
/* ôèëüòð ïîäîø¸ë. ìîæíî èçìåíÿòü çíà÷åíèå òðàôôèêà
äîìíîæàåì íà ÷èñëî */