Commit a471da10 authored by gejun's avatar gejun

Remove baidu-specific descriptions from comments

parent 7ed22996
...@@ -1212,8 +1212,8 @@ void ProcessHttpRequest(InputMessageBase *msg) { ...@@ -1212,8 +1212,8 @@ void ProcessHttpRequest(InputMessageBase *msg) {
} }
} else if (security_mode) { } else if (security_mode) {
cntl->SetFailed(EPERM, "Not allowed to access builtin services, try " cntl->SetFailed(EPERM, "Not allowed to access builtin services, try "
"ServerOptions.internal_port=%d instead if you're inside" "ServerOptions.internal_port=%d instead if you're in"
" Baidu's network", server->options().internal_port); " internal network", server->options().internal_port);
cntl->http_response().set_status_code(HTTP_STATUS_FORBIDDEN); cntl->http_response().set_status_code(HTTP_STATUS_FORBIDDEN);
return SendHttpResponse(cntl.release(), server, method_status); return SendHttpResponse(cntl.release(), server, method_status);
} }
......
...@@ -241,7 +241,7 @@ struct ServerOptions { ...@@ -241,7 +241,7 @@ struct ServerOptions {
// Provide builtin services at this port rather than the port to Start(). // Provide builtin services at this port rather than the port to Start().
// When your server needs to be accessed from public (including traffic // When your server needs to be accessed from public (including traffic
// redirected by nginx or other http front-end servers), set this port // redirected by nginx or other http front-end servers), set this port
// to a port number that's ONLY accessible from Baidu's internal network // to a port number that's ONLY accessible from internal network
// so that you can check out the builtin services from this port while // so that you can check out the builtin services from this port while
// hiding them from public. Setting this option also enables security // hiding them from public. Setting this option also enables security
// protection code which we may add constantly. // protection code which we may add constantly.
......
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2017 Baidu, Inc // Copyright (c) 2017 Baidu, Inc
// Date: Thu Jan 19 16:19:30 CST 2017 // Date: Thu Jan 19 16:19:30 CST 2017
......
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu, Inc. // Copyright (c) 2014 Baidu, Inc.
// //
// Author: Rujie,Jiang jiangrujie@baidu.com // Author: Rujie,Jiang jiangrujie@baidu.com
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment