Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
f5c5b33f
Commit
f5c5b33f
authored
Dec 31, 2018
by
Darren Shepherd
Committed by
root
Jun 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only use the resolved name if port was zero
parent
83201647
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
server.go
pkg/kubelet/server/streaming/server.go
+4
-2
No files found.
pkg/kubelet/server/streaming/server.go
View file @
f5c5b33f
...
@@ -240,8 +240,10 @@ func (s *server) Start(stayUp bool) error {
...
@@ -240,8 +240,10 @@ func (s *server) Start(stayUp bool) error {
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
// Use the actual address as baseURL host. This handles the "0" port case.
if
_
,
port
,
err
:=
net
.
SplitHostPort
(
s
.
config
.
Addr
);
err
!=
nil
||
port
==
"0"
{
s
.
config
.
BaseURL
.
Host
=
listener
.
Addr
()
.
String
()
// Use the actual address as baseURL host. This handles the "0" port case.
s
.
config
.
BaseURL
.
Host
=
listener
.
Addr
()
.
String
()
}
if
s
.
config
.
TLSConfig
!=
nil
{
if
s
.
config
.
TLSConfig
!=
nil
{
return
s
.
server
.
ServeTLS
(
listener
,
""
,
""
)
// Use certs from TLSConfig.
return
s
.
server
.
ServeTLS
(
listener
,
""
,
""
)
// Use certs from TLSConfig.
}
}
...
...
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