Explorar o código

fix GetSystemNetworks

afeiszli %!s(int64=3) %!d(string=hai) anos
pai
achega
d1831ece96
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netclient/ncutils/netclientutils.go

+ 1 - 1
netclient/ncutils/netclientutils.go

@@ -462,7 +462,7 @@ func GetSystemNetworks() ([]string, error) {
 		}
 		file := filepath.Base(file)
 		temp := strings.Split(file, "-")
-		networks = append(networks, temp[1])
+		networks = append(networks, strings.Join(temp[1:], "-"))
 	}
 	return networks, nil
 }