Dear all,
I was following this threath, since I was facing a simular issue.
when CLIENT_ACCEPTED {
binary scan [md5 [IP::client_addr]] w1 clienthash
set picked [lindex [active_members -list hackit_pool] [expr {$clienthash % [active_members hackit_pool]}]]
pool hackit_pool member [lindex $picked 0] [lindex $picked 1]
}
the issue was that the binary Scan did not generate a Numeric Value but a Binary Value.
binary scan [md5 [IP::client_addr]] w1 clienthash
generates a Value $clienthash available for the expression.
http://www.tcl.tk/man/tcl8.4/TclCmd/binary.htmM24
Kind Regards
jwiesmann