Do not try non-SOCKSv5 proxies for UDPASSOC

This commit is contained in:
Vladimir Dubrovin 2026-08-08 22:58:41 +03:00
parent 8de2be3b3b
commit f480c9dfe8

View File

@ -352,6 +352,7 @@ int handleredirect(struct clientparam * param, struct ace * acentry){
}
if(param->operation == UDPASSOC){
SOCKET s;
if(cur->type != R_SOCKS5 && cur->type != R_SOCKS5P) return 70;
s = param->remsock;
param->remsock = INVALID_SOCKET;
param->ctrlsocksrv = s;