Skip to content

Commit

Permalink
Add a configuration to determine whether to enable the point-to-point…
Browse files Browse the repository at this point in the history
… network interface (#15032)

* Add a configuration to determine whether to enable the point-to-point network interface

Add a configuration to determine whether to enable the point-to-point network interface

* Update to dubbo.network.interface.point-to-point.ignored
  • Loading branch information
finefuture authored Jan 10, 2025
1 parent 38ae1b2 commit f0dd47a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,15 @@ interface DubboProperty {
*/
String DUBBO_PREFERRED_NETWORK_INTERFACE = "dubbo.network.interface.preferred";

/**
* The property name for {@link NetworkInterface#isPointToPoint() return whether a network interface is a point
* to point interface} that the Dubbo application will determine whether to ignore the point-to-point network
* interface
*
* @since 3.3
*/
String DUBBO_NETWORK_INTERFACE_POINT_TO_POINT_IGNORED = "dubbo.network.interface.point-to-point.ignored";

String DUBBO_CLASS_DESERIALIZE_ALLOWED_LIST = "dubbo.security.serialize.allowedClassList";
String DUBBO_CLASS_DESERIALIZE_BLOCKED_LIST = "dubbo.security.serialize.blockedClassList";
String DUBBO_CLASS_DESERIALIZE_OPEN_CHECK = "dubbo.security.serialize.openCheckClass";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,11 @@ private static boolean ignoreNetworkInterface(NetworkInterface networkInterface)
|| !networkInterface.isUp()) {
return true;
}
if (Boolean.parseBoolean(SystemPropertyConfigUtils.getSystemProperty(
CommonConstants.DubboProperty.DUBBO_NETWORK_INTERFACE_POINT_TO_POINT_IGNORED, "false"))
&& networkInterface.isPointToPoint()) {
return true;
}
String ignoredInterfaces = SystemPropertyConfigUtils.getSystemProperty(
CommonConstants.DubboProperty.DUBBO_NETWORK_IGNORED_INTERFACE);
String networkInterfaceDisplayName;
Expand Down

0 comments on commit f0dd47a

Please sign in to comment.