some more staticIP fixes

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1784 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 19 years ago
parent 5e79a99d3a
commit 7c5f8f997a

@ -108,7 +108,7 @@ public final class hello {
// the request came from
if (urls < 0) {
boolean isLocalIP = false;
if (serverCore.portForwardingEnabled) {
if (serverCore.portForwardingEnabled || serverCore.useStaticIP) {
try {
final InetAddress clientAddress = httpc.dnsResolve(clientip);
if (clientAddress != null) {
@ -128,7 +128,7 @@ public final class hello {
}
// we are only allowed to connect to the client IP address if it's not our own address
if (!isLocalIP) {
if (!isLocalIP && ! serverCore.useStaticIP) {
serverCore.checkInterruption();
prop.put(yacySeed.YOURIP, clientip);

Loading…
Cancel
Save