zoom: IP auth use field "ipRanges" rather than "ip" MP-551
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 4 Jun 2014 10:31:09 +0000 (12:31 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 4 Jun 2014 10:31:16 +0000 (12:31 +0200)
src/filter_zoom.cpp

index db3719a..69a25b8 100644 (file)
@@ -2640,7 +2640,7 @@ void yf::Zoom::Frontend::auth(mp::Package &package, Z_InitRequest *req,
     }
     else
     {
-        torus_query = "ip encloses/net.ipaddress \"";
+        torus_query = "ipRanges encloses/net.ipaddress \"";
         torus_query += escape_cql_term(std::string(ip));
         torus_query += "\"";
         failure_code = YAZ_BIB1_INIT_AC_BLOCKED_NETWORK_ADDRESS;