[
https://issues.apache.org/jira/browse/RATIS-1469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17460362#comment-17460362
]
Liu Jinghao commented on RATIS-1469:
------------------------------------
[~xuting] ,
In method
"org.apache.ratis.grpc.server.GrpcService#startBuildingNettyServer", you can
construct NettyServerBuilder by using address.
example:
{code:java}
String inetAddress = "127.0.0.1";
int port = 65000;
InetSocketAddress socketAddress = new InetSocketAddress(inetAddress, port);
NettyServerBuilder nettyServerBuilder =
NettyServerBuilder.forAddress(socketAddress); {code}
> Can I disable network-wide listening when the RATIS server is started?
> ----------------------------------------------------------------------
>
> Key: RATIS-1469
> URL: https://issues.apache.org/jira/browse/RATIS-1469
> Project: Ratis
> Issue Type: Improvement
> Components: gRPC, Netty
> Affects Versions: 2.2.0
> Environment: linux
> Reporter: xuting
> Priority: Major
> Labels: security
> Attachments: image-2021-12-14-10-00-02-660.png
>
>
> Hello! Can I disable network-wide listening when the Ratis server is started?
> I've only found the following way to set the port boot, but I haven't found
> the place to set the ip boot.
> _GrpcConfigKeys.Server.setPort(properties, port);_
>
> _!image-2021-12-14-10-00-02-660.png!_
> After network-wide interception is enabled, the system is insecure and the
> original isolation principle is violated.
> Thank you for your answers!
--
This message was sent by Atlassian Jira
(v8.20.1#820001)