mirror of
				https://github.com/luscis/openlan.git
				synced 2025-10-31 12:36:26 +08:00 
			
		
		
		
	fix: show openvpn clients.
This commit is contained in:
		| @@ -33,16 +33,6 @@ func (u VPNClient) List(c *cli.Context) error { | ||||
| 	if err := clt.GetJSON(url, &items); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 	name := c.String("name") | ||||
| 	if len(name) > 0 { | ||||
| 		tmp := items[:0] | ||||
| 		for _, obj := range items { | ||||
| 			if obj.Network == name { | ||||
| 				tmp = append(tmp, obj) | ||||
| 			} | ||||
| 		} | ||||
| 		items = tmp | ||||
| 	} | ||||
| 	return u.Out(items, c.String("format"), u.Tmpl()) | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Ding
					Daniel Ding