forked from I2P_Developers/i2p.i2p
Migrate webapp detection calls to PortMapper.isRegistered()
This commit is contained in:
@@ -438,6 +438,6 @@ public class NamingServiceBean extends AddressbookBean
|
||||
* @since 0.9.34
|
||||
*/
|
||||
public boolean haveImagegen() {
|
||||
return _context.portMapper().getPort("imagegen") > 0;
|
||||
return _context.portMapper().isRegistered("imagegen");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@ public class SubscriptionsBean extends BaseBean
|
||||
// config reload and fetch.
|
||||
*******/
|
||||
if (content != null && content.length() > 2 &&
|
||||
_context.portMapper().getPort(PortMapper.SVC_HTTP_PROXY) > 0) {
|
||||
_context.portMapper().isRegistered(PortMapper.SVC_HTTP_PROXY)) {
|
||||
message = _t("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