fix: support UDP ASSOCIATE through SOCKS5 parent

This commit is contained in:
yazhog 2026-08-09 18:57:34 +03:00
parent c31fe8367f
commit 828228661c

View File

@ -148,7 +148,13 @@ int doauth(struct clientparam * param){
if(ret > 9) return ret;
}
if(!res){
ret = alwaysauth(param);
/* UDP parent negotiation already established its control connection. */
if(param->operation == UDPASSOC && param->ctrlsocksrv != INVALID_SOCKET) {
ret = 0;
}
else {
ret = alwaysauth(param);
}
if (param->afterauthfilters){
FILTER_ACTION action;