Explorar o código

update get extClient func

Max Ma hai 1 ano
pai
achega
7b8566be12
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      logic/extpeers.go

+ 1 - 1
logic/extpeers.go

@@ -90,7 +90,7 @@ func DeleteExtClient(network string, clientid string) error {
 	if err != nil {
 		return err
 	}
-	if extClient, ok := getExtClientFromCache(key); ok {
+	if extClient, err := GetExtClient(clientid, network); err == nil {
 		//recycle ip address
 		if extClient.Address != "" {
 			RemoveIpFromAllocatedIpMap(network, extClient.Address)