use different way to get own IP in keepalive tests
This commit is contained in:

committed by
Markus Mäkelä

parent
7e5353dae8
commit
4887bce398
@ -1,4 +1,5 @@
|
||||
#include "keepalived_func.h"
|
||||
#include "get_my_ip.h"
|
||||
|
||||
char * print_version_string(TestConnections * Test)
|
||||
{
|
||||
@ -15,7 +16,8 @@ void configure_keepalived(TestConnections* Test, char * keepalived_file)
|
||||
int i;
|
||||
char client_ip[24];
|
||||
char * last_dot;
|
||||
Test->get_client_ip(0, client_ip);
|
||||
//Test->get_client_ip(0, client_ip);
|
||||
get_my_ip(Test->maxscales->IP[0], client_ip);
|
||||
last_dot = client_ip;
|
||||
Test->tprintf("My IP is %s\n", client_ip);
|
||||
for (i = 0; i < 3; i++)
|
||||
|
Reference in New Issue
Block a user