unknown-cli 0.9.15__tar.gz → 0.9.16__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/PKG-INFO +1 -1
  2. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknown_cli.egg-info/PKG-INFO +1 -1
  3. unknown-cli-0.9.16/unknowncli/VERSION +1 -0
  4. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknowncli/utils.py +17 -3
  5. unknown-cli-0.9.15/unknowncli/VERSION +0 -1
  6. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/README.md +0 -0
  7. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/setup.cfg +0 -0
  8. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/setup.py +0 -0
  9. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknown_cli.egg-info/SOURCES.txt +0 -0
  10. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknown_cli.egg-info/dependency_links.txt +0 -0
  11. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknown_cli.egg-info/entry_points.txt +0 -0
  12. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknown_cli.egg-info/requires.txt +0 -0
  13. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknown_cli.egg-info/top_level.txt +0 -0
  14. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknowncli/__init__.py +0 -0
  15. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknowncli/__main__.py +0 -0
  16. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknowncli/commands/__init__.py +0 -0
  17. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknowncli/commands/preflight.py +0 -0
  18. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknowncli/commands/project.py +0 -0
  19. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknowncli/commands/task.py +0 -0
  20. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknowncli/commands/unreal.py +0 -0
  21. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknowncli/commands/xbox.py +0 -0
  22. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknowncli/data/.p4ignore.txt +0 -0
  23. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknowncli/set_registry_keys.py +0 -0
  24. {unknown-cli-0.9.15 → unknown-cli-0.9.16}/unknowncli/set_url_handler.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unknown-cli
3
- Version: 0.9.15
3
+ Version: 0.9.16
4
4
  Summary: Unknown Commandline Tool
5
5
  Home-page: UNKNOWN
6
6
  Author:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unknown-cli
3
- Version: 0.9.15
3
+ Version: 0.9.16
4
4
  Summary: Unknown Commandline Tool
5
5
  Home-page: UNKNOWN
6
6
  Author:
@@ -0,0 +1 @@
1
+ 0.9.16
@@ -47,6 +47,19 @@ PERFORCE_SERVERS = {
47
47
 
48
48
  P4_TRUST = "D2:CA:D9:C9:67:64:CF:21:3C:32:ED:61:3F:93:DC:64:D5:7A:AA:C7"
49
49
 
50
+ import socket
51
+
52
+ def get_ip_from_url(url):
53
+ timeout = 0.1
54
+ try:
55
+ # Set the default timeout for the socket
56
+ socket.setdefaulttimeout(timeout)
57
+ # Resolve the domain to an IP
58
+ ip = socket.gethostbyname(url)
59
+ return ip
60
+ except Exception as e:
61
+ return None
62
+
50
63
  def print_error(*txt):
51
64
  color_print(*txt, color="red")
52
65
 
@@ -318,13 +331,14 @@ def check_p4trust():
318
331
 
319
332
  for ssl_connection in ssl_connection_list:
320
333
  p4_port = ssl_connection.replace("ssl:", "")
334
+ ip = get_ip_from_url(p4_port.split(":")[0])
321
335
  matching_trust_line = next(
322
- (t for t in trust_line_list if t.startswith(p4_port) and t.endswith(P4_TRUST)),
336
+ (t for t in trust_line_list if (t.startswith(p4_port) or t.startswith(ip)) and t.endswith(P4_TRUST)),
323
337
  None
324
338
  )
325
339
  if matching_trust_line:
326
- # Connection fingerprint is up to date; no action needed.
327
- continue
340
+ # Connection fingerprint is up to date; no action needed. Assume other servers are also good
341
+ return
328
342
 
329
343
  secho(f"Updating trust: {ssl_connection}", fg="green")
330
344
  p4 = P4()
@@ -1 +0,0 @@
1
- 0.9.15
File without changes
File without changes
File without changes