aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/tunnelspage.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/tunnelspage.go')
-rw-r--r--ui/tunnelspage.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/tunnelspage.go b/ui/tunnelspage.go
index 8bcf6aaa..c2521a6b 100644
--- a/ui/tunnelspage.go
+++ b/ui/tunnelspage.go
@@ -314,8 +314,7 @@ func (tp *TunnelsPage) importFiles(paths []string) {
// Add in reverse order so that the first one is selected.
sort.Slice(unparsedConfigs, func(i, j int) bool {
- //TODO: use proper tunnel string sorting/comparison algorithm, as the other comments indicate too.
- return strings.Compare(unparsedConfigs[i].Name, unparsedConfigs[j].Name) > 0
+ return conf.TunnelNameIsLess(unparsedConfigs[j].Name, unparsedConfigs[i].Name)
})
existingTunnelList, err := service.IPCClientTunnels()