mirror of
https://github.com/aclist/dztui.git
synced 2026-11-05 01:24:48 +01:00
fix: block malformed records on config import
This commit is contained in:
1 parent
29aeb550b3
commit
7bf0fde3fc
2 files changed
+5
-5
No files matched your search
@@ -152,10 +152,6 @@ class ServerModelManager:
|
||||
|
||||
@call_on_thread(dialog.fetching)
|
||||
def _dump_ips(self, ips: list[str]) -> None:
|
||||
# NOTE: block malformed records (TODO: add github issue no.)
|
||||
# TODO: sanitize ip list at config time and drop this
|
||||
# TODO: make test for this
|
||||
ips = [ip for ip in ips if len(ip.split(":")) == 3 and ip.split(":")[2] != ""]
|
||||
job = Servers.query_direct
|
||||
servers = []
|
||||
with ThreadPoolExecutor() as executor:
|
||||
|
||||
Reference in new issue
Block a user