diff --git a/src/ripple/app/main/Main.cpp b/src/ripple/app/main/Main.cpp index 2e91535ff..f2fffbd4f 100644 --- a/src/ripple/app/main/Main.cpp +++ b/src/ripple/app/main/Main.cpp @@ -620,7 +620,8 @@ int run (int argc, char** argv) std::cerr << "WARNING: using deprecated rpc_port param.\n"; try { - res.first.at_port(vm["rpc_port"].as()); + res.first = res.first.at_port( + vm["rpc_port"].as()); if (res.first.port() == 0) throw std::domain_error("0"); }