fix: default to correct ws port in rpc server args (#1739)

This commit is contained in:
pistomat
2023-03-13 16:12:44 +01:00
committed by GitHub
parent 5e0535c27c
commit 043098aa70

View File

@ -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());
} }