FIx: support extip / ha for SOCKSv5 udp associate

This commit is contained in:
Vladimir Dubrovin 2026-08-10 17:18:57 +03:00
parent eca362af81
commit 1e47e74c49

View File

@ -285,7 +285,7 @@ int handleredirect(struct clientparam * param, struct ace * acentry){
} }
continue; continue;
} }
param->redirected++; if(cur->type != R_EXTIP && cur->type != R_HA) param->redirected++;
done = 1; done = 1;
if(weight <= 0) { if(weight <= 0) {
weight += 1000; weight += 1000;
@ -340,6 +340,7 @@ int handleredirect(struct clientparam * param, struct ace * acentry){
} }
if(cur->next)continue; if(cur->next)continue;
if(!ha) return 0; if(!ha) return 0;
if(param->operation == UDPASSOC) return 0;
} }
else if(!*SAPORT(&cur->addr) && !SAISNULL(&cur->addr)) { else if(!*SAPORT(&cur->addr) && !SAISNULL(&cur->addr)) {
uint16_t port = *SAPORT(&param->sinsr); uint16_t port = *SAPORT(&param->sinsr);