1 | *************** |
---|
2 | *** 467,482 **** |
---|
3 | #endif |
---|
4 | |
---|
5 | /* Initialize GeoIP databases */ |
---|
6 | - for(i=0; myGlobals.configFileDirs[i] != NULL; i++) { |
---|
7 | char path[256]; |
---|
8 | |
---|
9 | safe_snprintf(__FILE__, __LINE__, path, sizeof(path), |
---|
10 | "%s%c%s", |
---|
11 | - myGlobals.configFileDirs[i], CONST_PATH_SEP, GEO_IP_FILE); |
---|
12 | revertSlashIfWIN32(path, 0); |
---|
13 | if((myGlobals.geo_ip_db = GeoIP_open(path, GEOIP_CHECK_CACHE)) != NULL) { |
---|
14 | traceEvent(CONST_TRACE_INFO, "GeoIP: loaded config file %s", path); |
---|
15 | - break; |
---|
16 | } |
---|
17 | } |
---|
18 | |
---|
19 | --- 467,481 ---- |
---|
20 | #endif |
---|
21 | |
---|
22 | /* Initialize GeoIP databases */ |
---|
23 | + { |
---|
24 | char path[256]; |
---|
25 | |
---|
26 | safe_snprintf(__FILE__, __LINE__, path, sizeof(path), |
---|
27 | "%s%c%s", |
---|
28 | + myGlobals.dbPath, CONST_PATH_SEP, GEO_IP_FILE); |
---|
29 | revertSlashIfWIN32(path, 0); |
---|
30 | if((myGlobals.geo_ip_db = GeoIP_open(path, GEOIP_CHECK_CACHE)) != NULL) { |
---|
31 | traceEvent(CONST_TRACE_INFO, "GeoIP: loaded config file %s", path); |
---|
32 | } |
---|
33 | } |
---|
34 | |
---|
35 | *************** |
---|
36 | *** 485,500 **** |
---|
37 | |
---|
38 | /* *************************** */ |
---|
39 | |
---|
40 | - for(i=0; myGlobals.configFileDirs[i] != NULL; i++) { |
---|
41 | char path[256]; |
---|
42 | |
---|
43 | safe_snprintf(__FILE__, __LINE__, path, sizeof(path), |
---|
44 | "%s%c%s", |
---|
45 | - myGlobals.configFileDirs[i], CONST_PATH_SEP, GEO_IP_ASN_FILE); |
---|
46 | revertSlashIfWIN32(path, 0); |
---|
47 | if((myGlobals.geo_ip_asn_db = GeoIP_open(path, GEOIP_CHECK_CACHE)) != NULL) { |
---|
48 | traceEvent(CONST_TRACE_INFO, "GeoIP: loaded ASN config file %s", path); |
---|
49 | - break; |
---|
50 | } |
---|
51 | } |
---|
52 | |
---|
53 | --- 484,498 ---- |
---|
54 | |
---|
55 | /* *************************** */ |
---|
56 | |
---|
57 | + { |
---|
58 | char path[256]; |
---|
59 | |
---|
60 | safe_snprintf(__FILE__, __LINE__, path, sizeof(path), |
---|
61 | "%s%c%s", |
---|
62 | + myGlobals.dbPath, CONST_PATH_SEP, GEO_IP_ASN_FILE); |
---|
63 | revertSlashIfWIN32(path, 0); |
---|
64 | if((myGlobals.geo_ip_asn_db = GeoIP_open(path, GEOIP_CHECK_CACHE)) != NULL) { |
---|
65 | traceEvent(CONST_TRACE_INFO, "GeoIP: loaded ASN config file %s", path); |
---|
66 | } |
---|
67 | } |
---|
68 | |
---|