MySQL Forums
Forum List  »  Router & Proxy

Get client ip address
Posted by: zoyoo -
Date: March 16, 2008 03:23PM

Is it possible to get client ip address before read_handshake() in the lua script ? in read_handshake() there is an auth.client_addr however it might not work for my case:

A scnario is when a query reaches mysql proxy, i need to decide which specific server it goes to base on the client addr, which means, I need to get the client_addr in connect_server() to decide which value I set for connection.backend_ndx

Any suggestions?
Thanks !



Edited 2 time(s). Last edit at 03/16/2008 03:45PM by zoyoo -.

Options: ReplyQuote


Subject
Views
Written By
Posted
Get client ip address
14701
March 16, 2008 03:23PM
5753
March 16, 2008 03:36PM
7068
March 18, 2008 03:57PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.