Browse Source

资质验证修订,服务器去重

maohu 1 day ago
parent
commit
cab8c54c25
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Functions/QtFunctions/findServerWidget.py

+ 2 - 1
Functions/QtFunctions/findServerWidget.py

@@ -117,7 +117,8 @@ class findServerWidget(Ui_FormLink, QWidget):
 
     def print_out_result(self, dlist):
         try:
-            self.serverList = dlist
+            unique_tuples = list(set(tuple(sublist) for sublist in dlist))
+            self.serverList = [list(t) for t in unique_tuples]
             # print(self.serverList)
             if self.serverList == [] or self.serverList ==None:
                 self.setipinfo2()