Add helper functions and default parameters
Added some helper functions into the MaxScale class and default parameters into the connection creation functions. Also made the ip() function const correct.
This commit is contained in:
@ -467,7 +467,7 @@ int Nodes::read_basic_env()
|
||||
return 0;
|
||||
}
|
||||
|
||||
char* Nodes::ip(int i) const
|
||||
const char* Nodes::ip(int i) const
|
||||
{
|
||||
return use_ipv6 ? (char*)IP6[i] : (char*)IP[i];
|
||||
return use_ipv6 ? IP6[i] : IP[i];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user