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
dbe1bd9b
Commit
dbe1bd9b
authored
Jan 14, 2015
by
Daniel Smith
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3469 from fabianofranz/fixes_proxier
When choosing a host interface proxier must only consider the ones with an address assigned
parents
5b736972
0235bca2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
proxier.go
pkg/proxy/proxier.go
+8
-2
No files found.
pkg/proxy/proxier.go
View file @
dbe1bd9b
...
@@ -766,8 +766,14 @@ func chooseHostInterface() (net.IP, error) {
...
@@ -766,8 +766,14 @@ func chooseHostInterface() (net.IP, error) {
i
:=
0
i
:=
0
for
i
=
range
intfs
{
for
i
=
range
intfs
{
if
flagsSet
(
intfs
[
i
]
.
Flags
,
net
.
FlagUp
)
&&
flagsClear
(
intfs
[
i
]
.
Flags
,
net
.
FlagLoopback
|
net
.
FlagPointToPoint
)
{
if
flagsSet
(
intfs
[
i
]
.
Flags
,
net
.
FlagUp
)
&&
flagsClear
(
intfs
[
i
]
.
Flags
,
net
.
FlagLoopback
|
net
.
FlagPointToPoint
)
{
// This interface should suffice.
addrs
,
err
:=
intfs
[
i
]
.
Addrs
()
break
if
err
!=
nil
{
return
nil
,
err
}
if
len
(
addrs
)
>
0
{
// This interface should suffice.
break
}
}
}
}
}
if
i
==
len
(
intfs
)
{
if
i
==
len
(
intfs
)
{
...
...
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