MXS-1635 Allow using specific address when connecting

In some cases you might want to use a specific address/interface
when connecting to a server instead of the default one. With the
global parameter 'local_address' it can now be specified which
address to use.
This commit is contained in:
Johan Wikman
2018-01-31 16:14:14 +02:00
parent 7093a5bdf8
commit 7ae931ce9c
5 changed files with 114 additions and 2 deletions

View File

@ -77,6 +77,7 @@ typedef struct
char* qc_args; /**< Arguments for the query classifier */
int query_retries; /**< Number of times a interrupted query is retried */
time_t query_retry_timeout; /**< Timeout for query retries */
char* local_address; /**< Local address to use when connecting */
} MXS_CONFIG;
/**