Fix test for IPv6 firewalled configuration, javadocs

This commit is contained in:
zzz
2016-10-16 16:57:33 +00:00
parent 778ce71ea4
commit 5998587c52
3 changed files with 12 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2016-10-16 zzz
* Fix test for IPv6 firewalled configuration
2016-10-14 zzz
* Translations: Update from Transifex

View File

@@ -813,6 +813,8 @@ public abstract class TransportImpl implements Transport {
public void recheckReachability() {}
/**
* This returns true if the force-firewalled setting is configured, false otherwise.
*
* @since 0.9.20
*/
protected boolean isIPv4Firewalled() {
@@ -820,10 +822,12 @@ public abstract class TransportImpl implements Transport {
}
/**
* This returns true if the force-firewalled setting is configured, false otherwise.
*
* @since 0.9.27
*/
protected boolean isIPv6Firewalled() {
return TransportUtil.isIPv4Firewalled(_context, getStyle());
return TransportUtil.isIPv6Firewalled(_context, getStyle());
}
public boolean isBacklogged(Hash peer) { return false; }

View File

@@ -85,6 +85,8 @@ public abstract class TransportUtil {
}
/**
* This returns true if the force-firewalled setting is configured, false otherwise.
*
* @param transportStyle ignored
* @since 0.9.20
*/
@@ -93,6 +95,8 @@ public abstract class TransportUtil {
}
/**
* This returns true if the force-firewalled setting is configured, false otherwise.
*
* @param transportStyle ignored
* @since 0.9.27
*/