Allow to specify binding address for RADIUS

This commit is contained in:
z3APA3A committed 2020-10-15 12:21:46 +03:00
1 parent edaee895e6
commit a8b000b7f1
4 files changed
+11 -4

No files matched your search

+1
View File
@@ -554,6 +554,7 @@ int radsend(struct clientparam * param, int auth, int stop){
}
else remsock = radiuslist[loop].logsock;
*/
so._bind(param->remsock,(struct sockaddr *)&radiuslist[loop].localaddr,SASIZE(&radiuslist[loop].localaddr));
len = so._sendto(remsock, (char *)&packet, total_length, 0,
(struct sockaddr *)&saremote, sizeof(saremote));
if(len != ntohs(packet.length)){