break long lines

This commit is contained in:
Unrud 2018-07-31 20:18:47 +02:00
parent a296bd1188
commit 26337f3a0e
3 changed files with 22 additions and 10 deletions

View file

@ -61,7 +61,8 @@ func FindDefaultHost() string {
if fallbackAddr == "" {
fallbackAddr = ip.String()
}
for _, linkLocalPrefix := range []string{"169.254.", "fe8", "fe9", "fea", "feb"} {
for _, linkLocalPrefix := range []string{
"169.254.", "fe8", "fe9", "fea", "feb"} {
if strings.HasPrefix(ip.String(), linkLocalPrefix) {
continue addrs
}