mirror of
https://github.com/3proxy/3proxy.git
synced 2026-04-13 00:10:11 +08:00
Compare commits
No commits in common. "6bbf528a2065f3a92eab39906ed91a59481c5007" and "d823d8e7124211383ecf8f3ec73e1e3863dd3af2" have entirely different histories.
6bbf528a20
...
d823d8e712
66
.github/workflows/c-cpp.yml
vendored
66
.github/workflows/c-cpp.yml
vendored
@ -23,51 +23,41 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
# - name: configure
|
# - name: configure
|
||||||
# run: ./configure
|
# run: ./configure
|
||||||
|
- name: ln Linux
|
||||||
|
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
||||||
|
run: ln -s Makefile.Linux Makefile
|
||||||
- name: Linux libraries
|
- name: Linux libraries
|
||||||
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
||||||
run: sudo apt install libssl-dev libpam-dev libpcre3 libpcre3-dev
|
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
|
- name: make Ubuntu
|
||||||
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
||||||
run: make -f Makefile.Linux
|
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"
|
||||||
- name: mkdir
|
- name: mkdir
|
||||||
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
||||||
run: mkdir ~/3proxy
|
run: mkdir ~/3proxy
|
||||||
- name: make install
|
- name: make install
|
||||||
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
||||||
run: make -f Makefile.Linux DESTDIR=~/3proxy install
|
run: make DESTDIR=~/3proxy install
|
||||||
- name: make clean Linux
|
- name: make clean
|
||||||
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
run: make clean
|
||||||
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
|
|
||||||
|
|||||||
@ -200,12 +200,12 @@ void mylogfunc(struct clientparam * param, const unsigned char * pz) {
|
|||||||
#endif
|
#endif
|
||||||
rule++;
|
rule++;
|
||||||
if (((g_s == param->service) && (port == myhtons(*SAPORT(¶m->sinsr)))) ||
|
if (((g_s == param->service) && (port == myhtons(*SAPORT(¶m->sinsr)))) ||
|
||||||
( ((starttrafcorrect->con_type == UDP) &&
|
( ((starttrafcorrect->type == UDP) &&
|
||||||
((param->operation == UDPASSOC)||
|
((param->operation == UDPASSOC)||
|
||||||
(param->operation == DNSRESOLVE)||
|
(param->operation == DNSRESOLVE)||
|
||||||
(param->operation == BIND)||
|
(param->operation == BIND)||
|
||||||
(param->operation == ICMPASSOC))
|
(param->operation == ICMPASSOC))
|
||||||
)||(starttrafcorrect->con_type == TCP))) /* TCP support */
|
)||(starttrafcorrect->type == TCP))) /* TCP support */
|
||||||
{
|
{
|
||||||
/* ôèëüòð ïîäîø¸ë. ìîæíî èçìåíÿòü çíà÷åíèå òðàôôèêà
|
/* ôèëüòð ïîäîø¸ë. ìîæíî èçìåíÿòü çíà÷åíèå òðàôôèêà
|
||||||
äîìíîæàåì íà ÷èñëî */
|
äîìíîæàåì íà ÷èñëî */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user