提交 77ac40e2 编写于 作者: M Matt Witherspoon

Set default HTTP port for user specified http:// urls in cleos to :80

Change the default HTTP port used by cleos for http:// URLs to port 80. This doesn't change the default URL of http://localhost:8888, just the port number if someone were to use http://foo.bar/ for example
上级 d9df25ac
......@@ -95,7 +95,7 @@ namespace eosio { namespace client { namespace http {
if(res.server.empty())
FC_THROW("No server parsed from URL \"${u}\"", ("u", server_url));
if(res.port.empty())
res.port = res.scheme == "http" ? "8888" : "443";
res.port = res.scheme == "http" ? "80" : "443";
boost::trim_right_if(res.path_prefix, boost::is_any_of("/"));
return res;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册