Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
openSource
spring-cloud-netflix
Commits
ccf8f86c
Commit
ccf8f86c
authored
May 31, 2017
by
Rico Pahlisch
Committed by
GitHub
May 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use only default https ports for https check
spring boot uses all high ports and there are some trouble if ports end with 443 (e.g. 24443, ...)
parent
7425f974
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
DefaultServerIntrospector.java
...ework/cloud/netflix/ribbon/DefaultServerIntrospector.java
+5
-2
No files found.
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/ribbon/DefaultServerIntrospector.java
View file @
ccf8f86c
...
@@ -16,7 +16,9 @@
...
@@ -16,7 +16,9 @@
package
org
.
springframework
.
cloud
.
netflix
.
ribbon
;
package
org
.
springframework
.
cloud
.
netflix
.
ribbon
;
import
java.util.Arrays
;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
com.netflix.loadbalancer.Server
;
import
com.netflix.loadbalancer.Server
;
...
@@ -25,10 +27,11 @@ import com.netflix.loadbalancer.Server;
...
@@ -25,10 +27,11 @@ import com.netflix.loadbalancer.Server;
* @author Spencer Gibb
* @author Spencer Gibb
*/
*/
public
class
DefaultServerIntrospector
implements
ServerIntrospector
{
public
class
DefaultServerIntrospector
implements
ServerIntrospector
{
private
static
final
List
<
Integer
>
SECURE_PORTS
=
Arrays
.
asList
(
443
,
8443
);
@Override
@Override
public
boolean
isSecure
(
Server
server
)
{
public
boolean
isSecure
(
Server
server
)
{
// Can we do better?
return
SECURE_PORTS
.
contains
(
server
.
getPort
());
return
(
""
+
server
.
getPort
()).
endsWith
(
"443"
);
}
}
@Override
@Override
...
...
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