Format code
This commit is contained in:
parent
85b6d6ea9d
commit
6ef2be8776
6 changed files with 55 additions and 29 deletions
3
host.go
3
host.go
|
|
@ -74,7 +74,8 @@ func findDefaultHost() string {
|
|||
continue
|
||||
}
|
||||
for _, linkLocalPrefix := range []string{
|
||||
"169.254.", "fe8", "fe9", "fea", "feb"} {
|
||||
"169.254.", "fe8", "fe9", "fea", "feb",
|
||||
} {
|
||||
if strings.HasPrefix(ip.String(), linkLocalPrefix) {
|
||||
addIP(20, ip)
|
||||
continue addrs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue