acs::Cluster method map_inaddr_any (protected)
<instance of acs::Cluster> map_inaddr_any [ -dict ] location
Defined in packages/acs-tcl/tcl/cluster-procs.tcl
When the preferred location match returns INADDR_ANY, map it to "localhost" (which is certainly a valid member in this range, valid for IPv4 and IPv6).
- Switches:
- -dict (optional)
- Parameters:
- location (required)
- Testcases:
- No testcase defined.
Source code: set d [expr {$dict ? $location : [ns_parseurl $location]}] if {[dict get $d host] in {0.0.0.0 ::}} { set location [expr {$dict ? $d : [util::join_location -noabbrev -proto [dict get $d proto] -hostname [ns_addrbyhost localhost] -port [dict get $d port]] }] } return $locationXQL Not present: Generic, PostgreSQL, Oracle