mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
Merge branch 'master' of ssh://git@gitorious.org/yacy/rc1.git
This commit is contained in:
commit
3aa6a1207a
|
@ -91,6 +91,8 @@ public class WordCache {
|
|||
}
|
||||
} catch (final IOException e) {
|
||||
// finish
|
||||
} finally {
|
||||
reader.close();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -69,6 +69,8 @@ public class KeyList implements Iterable<String> {
|
|||
}
|
||||
} catch (final IOException e) {
|
||||
// finish
|
||||
} finally {
|
||||
reader.close();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -161,14 +161,18 @@ public class Switchboard {
|
|||
* @param propFile
|
||||
*/
|
||||
public static void load(File propFile) {
|
||||
FileInputStream fis = null;
|
||||
try {
|
||||
properties.load(new FileInputStream(propFile));
|
||||
fis = new FileInputStream(propFile);
|
||||
properties.load(fis);
|
||||
} catch (final FileNotFoundException e1) {
|
||||
log.info("error: file dispatcher.properties does not exist. Exit");
|
||||
System.exit(-1);
|
||||
} catch (final IOException e1) {
|
||||
log.info("error: file dispatcher.properties cannot be readed. Exit");
|
||||
System.exit(-1);
|
||||
} finally {
|
||||
if (fis != null) try { fis.close(); } catch (IOException ex) { }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -538,8 +538,9 @@ public final class yacy {
|
|||
if (configFile.exists()) {
|
||||
Properties p = new Properties();
|
||||
try {
|
||||
p.load(new FileInputStream(configFile));
|
||||
|
||||
FileInputStream fis = new FileInputStream(configFile);
|
||||
p.load(fis);
|
||||
fis.close();
|
||||
// Test for server access restriction (is implemented using Jetty IPaccessHandler which does not support IPv6
|
||||
// try to disavle IPv6
|
||||
String teststr = p.getProperty("serverClient", "*");
|
||||
|
|
Loading…
Reference in New Issue
Block a user