Forum Discussion
wpduhe_174647
Oct 21, 2014Nimbostratus
Kudos to everyone here for these outstanding suggestions! Excellent work! Below is what I ultimately used to accomplish my goal.
when CLIENT_ACCEPTED {
set pick [LB::select]
set ip [lindex [split $pick " "] 3]
switch $ip {
10.234.133.221 {
node $ip [TCP::local_port]
persist uie "[IP::local_addr]:[TCP::local_port]"
}
10.234.133.222 {
node $ip [expr {[TCP::local_port] + 1}]
persist uie "[IP::local_addr]:[TCP::local_port]"
}
default {
do something
}
}
}