提交 1e2a56d7 编写于 作者: K kohsuke

doc update

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10544 71c3de6d-444a-0410-be80-ed276b4c234a
上级 396f2998
......@@ -894,7 +894,8 @@ public class Functions {
* that the slaves talk to.
*/
public String getServerName() {
// try to infer this from the request URL
// Try to infer this from the configured root URL.
// This makes it work correctly when Hudson runs behind a reverse proxy.
String url = Hudson.getInstance().getRootUrl();
try {
if(url!=null) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册