Merge branch 'develop' of https://github.com/gravitl/netmaker into feature_proxy_metrics

This commit is contained in:
Abhishek Kondur
2022-12-01 19:31:56 +05:30
58 changed files with 788 additions and 679 deletions

View File

@@ -101,7 +101,7 @@ func getAllExtClients(w http.ResponseWriter, r *http.Request) {
}
clients := []models.ExtClient{}
var err error
if networksSlice[0] == logic.ALL_NETWORK_ACCESS {
if len(networksSlice) > 0 && networksSlice[0] == logic.ALL_NETWORK_ACCESS {
clients, err = functions.GetAllExtClients()
if err != nil && !database.IsEmptyRecord(err) {
logger.Log(0, "failed to get all extclients: ", err.Error())