Example: lr_get_vuser_ip

In the following example, the lr_get_vuser_ip function checks the IP address of the current Vuser and sends it to the Output window.

char *ip;
ip = lr_get_vuser_ip();
if (ip)
     lr_output_message("The IP address is %s", ip);
else
     lr_output_message("IP spoofing disabled");