lib/upnp: Refactor out methods to util with tests, refactor IGD
This commit is contained in:
committed by
Jakob Borg
parent
6a3f3f5577
commit
1d17891286
@@ -13,6 +13,7 @@ import (
|
||||
"github.com/syncthing/syncthing/lib/osutil"
|
||||
"github.com/syncthing/syncthing/lib/protocol"
|
||||
"github.com/syncthing/syncthing/lib/sync"
|
||||
"github.com/syncthing/syncthing/lib/util"
|
||||
)
|
||||
|
||||
// The Committer interface is implemented by objects that need to know about
|
||||
@@ -321,5 +322,5 @@ func (w *Wrapper) GlobalDiscoveryServers() []string {
|
||||
servers = append(servers, srv)
|
||||
}
|
||||
}
|
||||
return uniqueStrings(servers)
|
||||
return util.UniqueStrings(servers)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user