Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
f146ead8
Commit
f146ead8
authored
Dec 09, 2014
by
daryl herzmann
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #136 from tevans/OF-857
OF-857: Properly configure Jetty connectors
parents
5c2f873f
d83f7e6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
AdminConsolePlugin.java
...g/jivesoftware/openfire/container/AdminConsolePlugin.java
+5
-5
HttpBindManager.java
src/java/org/jivesoftware/openfire/http/HttpBindManager.java
+4
-5
No files found.
src/java/org/jivesoftware/openfire/container/AdminConsolePlugin.java
View file @
f146ead8
...
...
@@ -121,10 +121,11 @@ public class AdminConsolePlugin implements Plugin {
if
(
adminPort
>
0
)
{
httpConfig
=
new
HttpConfiguration
();
httpConnector
=
new
ServerConnector
(
adminServer
,
-
1
,
serverThreads
);
// Do not send Jetty info in HTTP headers
httpConfig
.
setSendServerVersion
(
false
);
httpConnector
.
addConnectionFactory
(
new
HttpConnectionFactory
(
httpConfig
));
httpConnector
=
new
ServerConnector
(
adminServer
,
null
,
null
,
null
,
-
1
,
serverThreads
,
new
HttpConnectionFactory
(
httpConfig
));
// Listen on a specific network interface if it has been set.
String
bindInterface
=
getBindInterface
();
httpConnector
.
setHost
(
bindInterface
);
...
...
@@ -165,9 +166,8 @@ public class AdminConsolePlugin implements Plugin {
HttpConnectionFactory
httpConnectionFactory
=
new
HttpConnectionFactory
(
httpsConfig
);
SslConnectionFactory
sslConnectionFactory
=
new
SslConnectionFactory
(
sslContextFactory
,
org
.
eclipse
.
jetty
.
http
.
HttpVersion
.
HTTP_1_1
.
toString
());
httpsConnector
=
new
ServerConnector
(
adminServer
,
-
1
,
serverThreads
);
httpsConnector
.
addConnectionFactory
(
sslConnectionFactory
);
httpsConnector
.
addConnectionFactory
(
httpConnectionFactory
);
httpsConnector
=
new
ServerConnector
(
adminServer
,
null
,
null
,
null
,
-
1
,
serverThreads
,
sslConnectionFactory
,
httpConnectionFactory
);
}
String
bindInterface
=
getBindInterface
();
...
...
src/java/org/jivesoftware/openfire/http/HttpBindManager.java
View file @
f146ead8
...
...
@@ -200,8 +200,8 @@ public final class HttpBindManager {
if
(
port
>
0
)
{
HttpConfiguration
httpConfig
=
new
HttpConfiguration
();
configureProxiedConnector
(
httpConfig
);
ServerConnector
connector
=
new
ServerConnector
(
httpBindServer
,
-
1
,
bindThreads
);
connector
.
addConnectionFactory
(
new
HttpConnectionFactory
(
httpConfig
));
ServerConnector
connector
=
new
ServerConnector
(
httpBindServer
,
null
,
null
,
null
,
-
1
,
bindThreads
,
new
HttpConnectionFactory
(
httpConfig
));
// Listen on a specific network interface if it has been set.
connector
.
setHost
(
getBindInterface
());
...
...
@@ -253,9 +253,8 @@ public final class HttpBindManager {
sslConnector
=
new
HTTPSPDYServerConnector
(
httpBindServer
,
sslContextFactory
);
}
else
{
sslConnector
=
new
ServerConnector
(
httpBindServer
,
-
1
,
bindThreads
);
sslConnector
.
addConnectionFactory
(
new
SslConnectionFactory
(
sslContextFactory
,
"http/1.1"
));
sslConnector
.
addConnectionFactory
(
new
HttpConnectionFactory
(
httpsConfig
));
sslConnector
=
new
ServerConnector
(
httpBindServer
,
null
,
null
,
null
,
-
1
,
bindThreads
,
new
SslConnectionFactory
(
sslContextFactory
,
"http/1.1"
),
new
HttpConnectionFactory
(
httpsConfig
));
}
sslConnector
.
setHost
(
getBindInterface
());
sslConnector
.
setPort
(
securePort
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment