Skip to content

Commit

Permalink
feat: list api updated
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmoysrt committed Feb 9, 2024
1 parent 2b4ba24 commit 4f9b4d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (m *Manager) PortOccupied(port int) bool {
func (m *Manager) List() []string {
m.Mutex.RLock()
defer m.Mutex.RUnlock()
var list []string
var list []string = make([]string, 0, len(m.ProxyMap))
for k := range m.ProxyMap {
list = append(list, k)
}
Expand Down

0 comments on commit 4f9b4d0

Please sign in to comment.