mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: default to correct ws port in rpc server args (#1739)
This commit is contained in:
@ -206,7 +206,7 @@ impl RpcServerArgs {
|
|||||||
if self.ws {
|
if self.ws {
|
||||||
let socket_address = SocketAddr::new(
|
let socket_address = SocketAddr::new(
|
||||||
self.ws_addr.unwrap_or(IpAddr::V4(Ipv4Addr::UNSPECIFIED)),
|
self.ws_addr.unwrap_or(IpAddr::V4(Ipv4Addr::UNSPECIFIED)),
|
||||||
self.ws_port.unwrap_or(constants::DEFAULT_HTTP_RPC_PORT),
|
self.ws_port.unwrap_or(constants::DEFAULT_WS_RPC_PORT),
|
||||||
);
|
);
|
||||||
config = config.with_ws_address(socket_address).with_http(ServerBuilder::new());
|
config = config.with_ws_address(socket_address).with_http(ServerBuilder::new());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user