-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Milestone
Description
proxysql/lib/Query_Processor.cpp
Line 890 in 3b9e408
| if (strcmp(qr->client_addr,sess->client_myds->addr.addr)!=0) { |
The above code shows a simple string comparison of client_addr to the client's actual IP. This feature request is to add support for netmask comparisons.
Reasoning: Pools of application servers (10.20.30.0/24, 10.20.35.0/24). Want to direct traffic from .30.0 to hostgroup 10 and .35.0 to hostgroup 20. These app servers are auto-provisioned and auto-destroyed as load increases/decreases. As of now, we would have to manually add proxysql rule each time a new host comes online. Netmask match would make this much easier.
markuman