From 7a21c9578bd3fd8bf2a5172dcbda53359d0e053a Mon Sep 17 00:00:00 2001 From: Vladimir Dubrovin <3proxy@3proxy.ru> Date: Wed, 22 Apr 2026 11:32:58 +0300 Subject: [PATCH 1/3] Update build-win64.yml --- .github/workflows/build-win64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-win64.yml b/.github/workflows/build-win64.yml index 9acc15f..b75e198 100644 --- a/.github/workflows/build-win64.yml +++ b/.github/workflows/build-win64.yml @@ -2,7 +2,7 @@ name: Build Win64 3proxy with MSVC on: push: - branches: [ "master" ] + branches: [ "master", "test-ci" ] paths: [ 'RELEASE', '.github/workflows/build-win64.yml' ] jobs: From ab9b7c6fca9126b1e22fbc0556993530d9d1d914 Mon Sep 17 00:00:00 2001 From: Vladimir Dubrovin <3proxy@3proxy.ru> Date: Wed, 22 Apr 2026 12:00:12 +0300 Subject: [PATCH 2/3] fix inithashtable call --- src/conf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conf.c b/src/conf.c index dd6d082..e159243 100644 --- a/src/conf.c +++ b/src/conf.c @@ -662,7 +662,7 @@ static int h_nscache(int argc, unsigned char **argv){ fprintf(stderr, "Invalid NS cache size: %d\n", res); return 1; } - if(dns_table.growlimit != res && inithashtable(&dns_table, (res << 2), (res << 2), res)){ + if(dns_table.growlimit != res && inithashtable(&dns_table, (res >> 2), (res >> 2), res)){ fprintf(stderr, "Failed to initialize NS cache\n"); return 2; } @@ -685,7 +685,7 @@ static int h_nscache6(int argc, unsigned char **argv){ fprintf(stderr, "Invalid NS cache size: %d\n", res); return 1; } - if(dns6_table.growlimit != res &&inithashtable(&dns6_table, (res<<2), (res<<2), res)){ + if(dns6_table.growlimit != res &&inithashtable(&dns6_table, (res>>2), (res>>2), res)){ fprintf(stderr, "Failed to initialize NS cache\n"); return 2; } @@ -1449,7 +1449,7 @@ static int h_authcache(int argc, unsigned char **argv){ if(!conf.authcachetype) conf.authcachetype = 6; if(!conf.authcachetime) conf.authcachetime = 600; if(!authcachesize) authcachesize = 65536*4; - if(auth_table.growlimit != authcachesize && inithashtable(&auth_table, 1024, 1024, authcachesize)){ + if(auth_table.growlimit != authcachesize && inithashtable(&auth_table, authcachesize < 1024? authcachesize:1024, authcachesize < 1024? authcachesize:1024, authcachesize)){ fprintf(stderr, "Failed to initialize auth cache\n"); return 2; } From 3e8124632054e96223307a53bf5e54d3dbc9d8ae Mon Sep 17 00:00:00 2001 From: Vladimir Dubrovin <3proxy@3proxy.ru> Date: Wed, 22 Apr 2026 12:00:45 +0300 Subject: [PATCH 3/3] Update build-win64.yml --- .github/workflows/build-win64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-win64.yml b/.github/workflows/build-win64.yml index b75e198..90a3538 100644 --- a/.github/workflows/build-win64.yml +++ b/.github/workflows/build-win64.yml @@ -2,7 +2,7 @@ name: Build Win64 3proxy with MSVC on: push: - branches: [ "master", "test-ci" ] + branches: [ "master", "test-ci" ] paths: [ 'RELEASE', '.github/workflows/build-win64.yml' ] jobs: