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
34286d24
Commit
34286d24
authored
Jun 10, 2015
by
daryl herzmann
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #232 from dwd/fix-everything-3.10
Address current problems in 3.10
parents
ad6fb662
46e87630
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
NIOConnection.java
src/java/org/jivesoftware/openfire/nio/NIOConnection.java
+16
-4
No files found.
src/java/org/jivesoftware/openfire/nio/NIOConnection.java
View file @
34286d24
...
@@ -162,15 +162,27 @@ public class NIOConnection implements Connection {
...
@@ -162,15 +162,27 @@ public class NIOConnection implements Connection {
}
}
public
byte
[]
getAddress
()
throws
UnknownHostException
{
public
byte
[]
getAddress
()
throws
UnknownHostException
{
return
((
InetSocketAddress
)
ioSession
.
getRemoteAddress
()).
getAddress
().
getAddress
();
try
{
return
((
InetSocketAddress
)
ioSession
.
getRemoteAddress
()).
getAddress
().
getAddress
();
}
catch
(
NullPointerException
e
)
{
throw
new
UnknownHostException
();
}
}
}
public
String
getHostAddress
()
throws
UnknownHostException
{
public
String
getHostAddress
()
throws
UnknownHostException
{
return
((
InetSocketAddress
)
ioSession
.
getRemoteAddress
()).
getAddress
().
getHostAddress
();
try
{
return
((
InetSocketAddress
)
ioSession
.
getRemoteAddress
()).
getAddress
().
getHostAddress
();
}
catch
(
NullPointerException
e
)
{
throw
new
UnknownHostException
();
}
}
}
public
String
getHostName
()
throws
UnknownHostException
{
public
String
getHostName
()
throws
UnknownHostException
{
return
((
InetSocketAddress
)
ioSession
.
getRemoteAddress
()).
getAddress
().
getHostName
();
try
{
return
((
InetSocketAddress
)
ioSession
.
getRemoteAddress
()).
getAddress
().
getHostName
();
}
catch
(
NullPointerException
e
)
{
throw
new
UnknownHostException
();
}
}
}
public
Certificate
[]
getLocalCertificates
()
{
public
Certificate
[]
getLocalCertificates
()
{
...
@@ -435,7 +447,7 @@ public class NIOConnection implements Connection {
...
@@ -435,7 +447,7 @@ public class NIOConnection implements Connection {
// good
// good
filter
.
setWantClientAuth
(
true
);
filter
.
setWantClientAuth
(
true
);
}
}
ioSession
.
getFilterChain
().
add
After
(
EXECUTOR_FILTER_NAME
,
TLS_FILTER_NAME
,
filter
);
ioSession
.
getFilterChain
().
add
Before
(
EXECUTOR_FILTER_NAME
,
TLS_FILTER_NAME
,
filter
);
ioSession
.
setAttribute
(
SslFilter
.
DISABLE_ENCRYPTION_ONCE
,
Boolean
.
TRUE
);
ioSession
.
setAttribute
(
SslFilter
.
DISABLE_ENCRYPTION_ONCE
,
Boolean
.
TRUE
);
if
(!
clientMode
)
{
if
(!
clientMode
)
{
...
...
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