forked from I2P_Developers/i2p.i2p
susidns, addressbook: Don't attempt to fetch subscriptions if
HTTP proxy is down (ticket #1530)
This commit is contained in:
@@ -36,6 +36,7 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import net.i2p.data.DataHelper;
|
||||
import net.i2p.util.PortMapper;
|
||||
import net.i2p.util.SecureFileOutputStream;
|
||||
|
||||
public class SubscriptionsBean extends BaseBean
|
||||
@@ -136,7 +137,8 @@ public class SubscriptionsBean extends BaseBean
|
||||
// with the correct parameters will kick off a
|
||||
// config reload and fetch.
|
||||
*******/
|
||||
if (content != null && content.length() > 2) {
|
||||
if (content != null && content.length() > 2 &&
|
||||
_context.portMapper().getPort(PortMapper.SVC_HTTP_PROXY) > 0) {
|
||||
message = _("Subscriptions saved, updating addressbook from subscription sources now.");
|
||||
// + "<img height=\"1\" width=\"1\" alt=\"\" " +
|
||||
// "src=\"/addressbook/?wakeup=1&nonce=" + nonce + "\">";
|
||||
|
Reference in New Issue
Block a user