Procházet zdrojové kódy

fix GetSystemNetworks

afeiszli před 3 roky
rodič
revize
d1831ece96
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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
 }