From 45c0e80d5e71029c7dc5be45d9f959ea6986515f Mon Sep 17 00:00:00 2001 From: Julian Noble Date: Sun, 24 Aug 2025 19:33:55 +1000 Subject: [PATCH] getzig.ps1 add temporary dev host --- bin/getzig.cmd | 11 +++++++++++ src/scriptapps/getzig.ps1 | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/bin/getzig.cmd b/bin/getzig.cmd index 8049b6bc..eac3f63b 100644 --- a/bin/getzig.cmd +++ b/bin/getzig.cmd @@ -944,6 +944,17 @@ if ($mirrors_response.StatusCode -eq 200) { write-host "host_list: $host_list" $automation_name = "punkshell+julian@precisium.com.au_target_by_latency" + #temporary dev download source + $ihost = "10.30.30.107" + $imirror = "http://10.30.30.107/jn/punkbin/raw/branch/master/win64/tools" + $itrace = test-netconnection $ihost -Hops 6 -TraceRoute -ErrorAction Ignore + if ((${itrace}.PingSucceeded) -and (${itrace}.TraceRoute.Count -lt 5)) { + $host_list += $ihost + $dict_mirrors[$ihost]["latency"] = 1 + $dict_mirrors[$ihost]["uri"] = $mirror + } + + $trace = test-netconnection gitea1.intx.com.au -Hops 6 -TraceRoute -ErrorAction Ignore if ((${trace}.PingSucceeded) -and (${trace}.TraceRoute.Count -lt 5)) { $dict_mirrors["gitea1.intx.com.au"]["latency"] = 2 diff --git a/src/scriptapps/getzig.ps1 b/src/scriptapps/getzig.ps1 index f4a861ff..5d7e8fc0 100644 --- a/src/scriptapps/getzig.ps1 +++ b/src/scriptapps/getzig.ps1 @@ -110,6 +110,17 @@ if ($mirrors_response.StatusCode -eq 200) { write-host "host_list: $host_list" $automation_name = "punkshell+julian@precisium.com.au_target_by_latency" + #temporary dev download source + $ihost = "10.30.30.107" + $imirror = "http://10.30.30.107/jn/punkbin/raw/branch/master/win64/tools" + $itrace = test-netconnection $ihost -Hops 6 -TraceRoute -ErrorAction Ignore + if ((${itrace}.PingSucceeded) -and (${itrace}.TraceRoute.Count -lt 5)) { + $host_list += $ihost + $dict_mirrors[$ihost]["latency"] = 1 + $dict_mirrors[$ihost]["uri"] = $mirror + } + + $trace = test-netconnection gitea1.intx.com.au -Hops 6 -TraceRoute -ErrorAction Ignore if ((${trace}.PingSucceeded) -and (${trace}.TraceRoute.Count -lt 5)) { $dict_mirrors["gitea1.intx.com.au"]["latency"] = 2